Function at 0x838310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [ebx + 0xd8]
push edi
test byte [ebp + 0x18], 0x40
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x3c], eax
je 0x838344
mov ecx, dword [ebp + 0x10]
jmp 0x838346
xor ecx, ecx
mov eax, dword [ebp + 4]
add eax, 4
add eax, ecx
push eax
push ebx
mov dword [esp + 0x1c], eax
call fcn.008389c0
add esp, 8
test eax, eax
jne 0x838961
mov edx, dword [edi + 0x2e0]
mov edi, edx
and edi, 0x400
and edx, 1
mov dword [esp + 0x30], edi
test edi, edi
je 0x838384
mov eax, 0x26
jmp 0x83838d
mov eax, edx
neg eax
sbb eax, eax
and eax, 6
movzx ebx, word [esi + 0x18]
mov ecx, dword [esi + 8]
add ebx, 0xe
lea ebx, [ecx + ebx*2]
movzx eax, word [ebx + eax]
add eax, ecx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
mov al, byte [eax]
mov byte [esp + 0x13], al
cmp al, 2
je 0x8383bb
add dword [esp + 0x14], 4
movzx ebp, word [esi + 0x18]
test edi, edi
je 0x8383db
add ebp, 0xd
mov dword [esp + 0x28], 0x26
lea eax, [ecx + ebp*2]
mov dword [esp + 0x1c], eax
movzx eax, word [eax + 0x26]
jmp 0x8383ff
mov eax, edx
neg eax
sbb eax, eax
add ebp, 0xd
and eax, 6
lea ebp, [ecx + ebp*2]
movzx eax, word [eax + ebp]
mov dword [esp + 0x1c], ebp
mov ebp, edx
neg ebp
sbb ebp, ebp
and ebp, 6
mov dword [esp + 0x28], ebp
cmp byte [esp + 0x13], 4
mov ebp, dword [esp + 0x80]
je 0x838938
cmp byte [esp + 0x13], 3
je 0x838909
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
sub ax, word [ecx + ebp]
mov ebp, dword [esp + 0x80]
dec ax
movzx ecx, ax
mov eax, dword [esi + 0x4c]
add ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
shr eax, 2
cmp ecx, eax
ja 0x838909
test edi, edi
je 0x838454
mov edi, 0x26
jmp 0x83845d
mov edi, edx
neg edi
sbb edi, edi
and edi, 6
mov ecx, dword [esi + 8]
movzx eax, word [ecx + 0x14]
movzx ecx, word [ecx + 0x16]
add eax, eax
sub ecx, eax
sub ecx, edi
sub ecx, 0x1a
cmp dword [esp + 0x14], ecx
ja 0x838909
cmp byte [esp + 0x13], 2
je 0x838569
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
inc eax
cmp dword [esp + 0x30], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x5c], eax
je 0x8384ad
movzx eax, word [ecx + 0x26]
mov edx, 0x26
jmp 0x8384c1
mov eax, edx
neg eax
sbb eax, eax
and eax, 6
neg edx
sbb edx, edx
and edx, 6
movzx eax, word [ecx + eax]
mov ecx, dword [esp + 0x24]
lea edi, [ebx + 0x6c]
push edi
sub ax, word [ecx + edx]
dec ax
movzx ecx, ax
movzx eax, ax
mov dword [esp + 0x64], eax
lea eax, [ebx + 0x64]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x38], ecx
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
call fcn.008398c0
add esp, 0x14
test eax, eax
jne 0x838961
push 1
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.007fe110
add esp, 0xc
test eax, eax
jne 0x838961
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2e0]
test eax, 0x400
je 0x83852f
mov edx, 0x26
jmp 0x83853b
and al, 1
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
mov ecx, dword [esi + 8]
movzx eax, word [esi + 0x18]
lea eax, [ecx + eax*2]
movzx eax, word [eax + edx + 0x1c]
mov byte [eax + ecx], 2
xor eax, eax
or dword [esi + 0x74], 0x10
mov word [esi + 0x5c], ax
mov eax, dword [esp + 0x30]
mov word [esi + 0x5e], ax
add eax, 4
mov word [esi + 0x60], ax
jmp 0x83856c
lea edi, [ebx + 0x6c]
push edi
lea eax, [ebx + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
push ebp
push dword [esp + 0x28]
call fcn.008398c0
add esp, 0x14
test eax, eax
jne 0x838961
mov edi, dword [esp + 0x84]
dec edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], edi
cmp edi, 0x15
ja case.0x83889a.1
movzx eax, byte [edi + 0x83897c]
jmp dword [eax*4 + 0x83896c]
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x10], 0
je 0x8387a5
mov eax, dword [ebx]
mov edx, fcn.007cd1f0
mov edi, dword [ebx + 0xd8]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x10]
test ecx, ecx
cmove ecx, edx
test byte [edi + 0x74], 1
mov dword [esp + 0x38], ecx
je 0x8385e9
movzx ebp, word [edi + 0x5c]
jmp 0x8385eb
xor ebp, ebp
mov eax, dword [eax + 0x2e0]
mov ecx, eax
and ecx, 0x400
and eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x83860f
mov eax, 0x26
jmp 0x838616
neg eax
sbb eax, eax
and eax, 6
movzx edx, word [edi + 0x18]
mov ecx, dword [edi + 8]
lea ecx, [ecx + edx*2]
add edx, 0xd
add ecx, 0x1c
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
movzx ecx, word [ecx + eax]
add ecx, dword [edi + 8]
movzx eax, bp
inc eax
add eax, ecx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x1c], eax
je 0x838655
mov ecx, dword [edi + 8]
movzx ecx, word [ecx + edx*2 + 0x26]
mov edx, 0x26
jmp 0x83867b
mov edx, dword [esp + 0x2c]
mov ecx, edx
mov eax, dword [edi + 8]
neg ecx
mov ebx, dword [esp + 0x14]
sbb ecx, ecx
and ecx, 6
neg edx
lea eax, [eax + ebx*2]
sbb edx, edx
and edx, 6
movzx ecx, word [eax + ecx]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
sub cx, word [edx + ebx]
mov ebx, dword [esp + 0x7c]
dec cx
mov dword [esp + 0x34], ecx
mov word [edi + 0x60], cx
movzx ecx, word [edi + 0x5e]
cmp bp, word [esp + 0x34]
jae 0x838758
movzx ecx, bp
mov dword [esp + 0x30], ecx
movzx ecx, word [eax]
add eax, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
movzx eax, cx
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x84]
movzx edx, cx
push dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
call dword [esp + 0x44]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x838761
jns 0x8386f4
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x10], 0
jne 0x838716
mov ebx, dword [esp + 0x34]
add ebp, 4
mov ecx, dword [esp + 0x14]
add ebx, 2
mov eax, dword [esp + 0x1c]
add ebp, ecx
add eax, ebx
mov ebx, dword [esp + 0x7c]
cmp bp, word [edi + 0x60]
jb 0x8386a0
jmp 0x838765
cmp dword [esp + 0x84], 0xa
jne 0x838761
mov ecx, dword [esp + 0x30]
movzx eax, cx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
or dword [edi + 0x74], 0x10
mov word [edi + 0x5e], ax
mov eax, dword [esp + 0x84]
mov word [edi + 0x5c], cx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0078cf10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [esp + 0x80]
jmp 0x838765
mov ecx, dword [esp + 0x14]
movzx eax, bp
mov dword [esp + 0x50], eax
or dword [edi + 0x74], 0x10
mov word [edi + 0x5c], bp
mov word [edi + 0x5e], cx
test edx, edx
jne 0x838849
mov eax, dword [esp + 0x84]
cmp eax, 0x16
jne 0x838742
push eax
push dword [esp + 0x84]
push ebx
call fcn.007f9b10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [ecx + 0x2e0]
movzx eax, word [esi + 0x18]
mov edi, dword [esi + 8]
test edx, 0x400
je 0x8387c6
movzx ecx, word [edi + eax*2 + 0x40]
mov edx, 0x26
jmp 0x8387e5
and edx, 1
lea eax, [edi + eax*2]
mov ecx, edx
neg ecx
sbb ecx, ecx
and ecx, 6
neg edx
sbb edx, edx
and edx, 6
movzx ecx, word [eax + ecx + 0x1a]
movzx eax, word [esi + 0x18]
lea eax, [edi + eax*2]
mov edi, dword [esp + 0x24]
sub cx, word [eax + edx + 0x1c]
dec cx
movzx ecx, cx
mov word [esi + 0x60], cx
mov ax, word [ebp + 4]
or dword [esi + 0x74], 0x10
cmp dword [esp + 0x84], 0xd
mov word [esi + 0x5e], ax
jne 0x838820
xor eax, eax
mov dword [esp + 0x50], 0
mov word [esi + 0x5c], ax
jmp 0x838854
mov eax, ecx
mov dword [esp + 0x50], eax
mov word [esi + 0x5c], ax
jmp 0x838854
movzx eax, word [esi + 0x5c]
mov dword [esp + 0x50], eax
jmp 0x838854
movzx eax, word [esi + 0x5e]
movzx ecx, word [esi + 0x5c]
add eax, 4
add eax, ecx
mov dword [esp + 0x50], eax
jmp 0x838854
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x24]
push 0
push dword [ebx + 0x14]
lea eax, [esi + 8]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push eax
push dword [esp + 0x50]
call fcn.007fb4a0
add esp, 0x18
test eax, eax
jne 0x838961
push eax
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.007fe110
add esp, 0xc
test eax, eax
jne 0x838961
cmp edi, 0x12
ja case.0x83889a.1
movzx eax, byte [edi + 0x8389a0]
jmp dword [eax*4 + 0x838994]
movzx eax, word [esi + 0x5e]
add ax, 4
add word [esi + 0x5c], ax
movzx eax, word [ebp + 4]
mov word [esi + 0x5e], ax
movzx eax, word [ebp + 4]
add ax, 4
add word [esi + 0x60], ax
jmp 0x8388d7
movzx eax, word [ebp + 4]
add ax, 4
add word [esi + 0x60], ax
movzx eax, word [ebp + 4]
mov word [esi + 0x5e], ax
push 1
push 2
push dword [esp + 0x4c]
push ebx
call fcn.007fae10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 0x9511a4
push dword [esp + 0x1c]
call fcn.0075c220
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push ebx
call fcn.008392c0
add esp, 4
test eax, eax
jne 0x838961
mov eax, dword [esi]
push 0
push dword [esp + 0x88]
push ebp
push 0
push eax
mov eax, dword [eax + 0x134]
call eax
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
test edi, edi
je 0x838943
mov edx, 0x26
jmp 0x83894a
neg edx
sbb edx, edx
and edx, 6
mov eax, dword [esp + 0x24]
movzx eax, word [edx + eax]
mov ecx, dword [eax + ecx + 4]
mov eax, dword [esp + 0x88]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret