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

Disassembly:
sub esp, 0xac
cmp dword [edi + 4], 0
push ebx
mov ebx, dword [esp + 0xbc]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
je 0x439388
test ebp, ebp
je 0x439388
cmp byte [edi + 0x182], 0
je 0x439388
cmp dword [edi + 0x14c], 0
mov esi, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
setge byte [esp + 0x16]
cmp dword [edi + 0x1bc], 0
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
setne byte [esp + 0x1b]
call dword [0x4a7068]
test eax, eax
mov dword [esp + 0xa0], eax
je 0x439388
lea ecx, [esp + 0xa4]
push ecx
push ebp
call dword [0x4a7070]
mov ecx, dword [esp + 0xa8]
cmp ecx, ebx
mov eax, ecx
jg 0x4389d0
mov eax, ebx
mov edx, dword [esp + 0xb0]
cmp edx, eax
jge 0x4389e1
mov dword [esp + 0x4c], edx
jmp 0x4389ed
cmp ecx, ebx
mov dword [esp + 0x4c], ecx
jg 0x4389ed
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0xa4]
mov edx, dword [esp + 0xc0]
cmp ebx, edx
mov eax, ebx
jg 0x438a03
mov eax, edx
mov ecx, dword [esp + 0xac]
cmp ecx, eax
jge 0x438a14
mov dword [esp + 0x48], ecx
jmp 0x438a20
cmp ebx, edx
mov dword [esp + 0x48], ebx
jg 0x438a20
mov dword [esp + 0x48], edx
lea eax, [edx + esi]
cmp ecx, eax
mov edx, ecx
jl 0x438a2b
mov edx, eax
cmp ebx, edx
jg 0x438a37
cmp ecx, eax
mov ebx, ecx
jl 0x438a37
mov ebx, eax
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0xb0]
cmp edx, eax
mov ecx, edx
jl 0x438a53
mov ecx, eax
mov esi, dword [esp + 0xa8]
cmp esi, ecx
jle 0x438a64
mov dword [esp + 0x54], esi
jmp 0x438a70
cmp edx, eax
mov dword [esp + 0x54], edx
jl 0x438a70
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x54]
sub ebx, dword [esp + 0x48]
sub esi, dword [esp + 0x4c]
cmp byte [esp + 0x16], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
jne 0x438d4e
cmp byte [esp + 0x17], 0
jne 0x438d4e
cmp byte [edi + 0x181], 0
jne 0x438d4e
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0xc]
jne 0x438af9
mov edx, dword [esp + 0x10]
cmp edx, dword [edi + 0x10]
jne 0x438af9
push 3
push ebp
call dword [0x4a7064]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xcc]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0xe4]
push edx
push eax
push ecx
push ebp
call dword [0x4a705c]
jmp 0x439368
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x18
call dword [0x4a70b4]
push 0
push 0
lea edx, [esp + 0x28]
push edx
mov esi, eax
push 0
lea eax, [esp + 0x74]
push eax
push ebp
mov dword [esp + 0x70], esi
call dword [0x4a707c]
push eax
push esi
call dword [0x4a70ac]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x38], eax
je 0x438d0b
fild dword [edi + 0xc]
mov eax, dword [esp + 0x28]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
fidiv dword [esp + 0x1c]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
fstp dword [esp + 0x60]
fild dword [edi + 0x10]
fidiv dword [esp + 0x10]
fstp dword [esp + 0x5c]
jle 0x438d0b
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], ecx
fild dword [edi + 0x10]
push ecx
fild dword [esp + 0x14]
fmul dword [esp + 0x60]
fsubp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.00438720
add esp, 4
call fcn.0049ddc0
mov ebp, dword [edi + 0x30]
mov ecx, dword [esp + 0x20]
xor edx, edx
test eax, eax
setl dl
xor esi, esi
mov dword [esp + 0x40], esi
sub edx, 1
and eax, edx
imul ebp, eax
add ebp, dword [edi + 0x34]
cmp dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
lea ebx, [eax + ecx]
jle 0x438cf0
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0xc0]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
add edx, esi
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
push ecx
fmul dword [esp + 0x64]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.00438720
add esp, 4
call fcn.0049ddc0
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and ecx, eax
cmp dword [edi + 0x28], 0
je 0x438cbf
mov esi, dword [esp + 0x24]
mov eax, edi
call fcn.00437cf0
mov ecx, edi
push eax
lea eax, [esp + 0x98]
call fcn.00437c90
mov eax, dword [eax]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x36]
mov dl, byte [esp + 0x35]
mov cl, byte [esp + 0x34]
jmp 0x438cd0
lea eax, [ebp + ecx*2]
add eax, ecx
mov cl, byte [eax]
mov dl, byte [eax + 1]
add eax, 1
mov al, byte [eax + 1]
mov byte [ebx], cl
add ebx, 1
mov byte [ebx], dl
add ebx, 1
add esi, 1
mov byte [ebx], al
add ebx, 1
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x40], esi
jl 0x438c50
mov ecx, dword [esp + 0x18]
add dword [esp + 0xc], ecx
mov eax, 1
sub dword [esp + 0x10], eax
sub dword [esp + 0x44], eax
jne 0x438be7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x38]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0xe0]
push edx
push eax
push ecx
call dword [0x4a705c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x58]
push edx
jmp 0x43934c
lea eax, [esp + 0x30]
mov ecx, edi
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
call fcn.00437810
mov eax, dword [edi + 0x14c]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x18
call dword [0x4a70b4]
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
lea edx, [esp + 0x74]
push edx
push ebp
mov dword [esp + 0x58], eax
call dword [0x4a707c]
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [0x4a70ac]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push 0xcc0020
push ecx
push edx
push ebp
push esi
push ebx
push 0
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x5c]
push 0
push eax
call dword [0x4a70a4]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x43930f
mov eax, dword [esp + 0x28]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0xc]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
jne 0x439077
mov eax, dword [edi + 0x10]
cmp dword [esp + 0x10], eax
jne 0x439077
sub eax, dword [esp + 0x54]
add eax, dword [esp + 0xc4]
cmp dword [esp + 0x2c], 0
mov edx, eax
mov dword [esp + 0x3c], edx
jle 0x43930f
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
lea esp, [esp]
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x1c]
imul eax, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
lea ebp, [eax + esi]
mov eax, dword [edi + 0x30]
imul eax, edx
mov dword [esp + 0x10], ecx
lea ecx, [ecx + ecx*2]
add eax, ecx
add eax, dword [edi + 0x34]
cmp dword [esp + 0x28], 0
mov dword [esp + 0x38], eax
jle 0x439058
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov edi, edi
cmp byte [esp + 0x17], 0
je 0x438f0a
mov ecx, dword [edi + 0x1bc]
add ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
mov al, byte [ecx + eax]
jmp 0x438f0c
or al, 0xff
movzx ebx, byte [edi + 0x180]
add ebx, 1
movzx ecx, al
imul ebx, ecx
sar ebx, 8
cmp dword [edi + 0x28], 0
je 0x438f6c
mov ecx, dword [esp + 0x10]
mov esi, edx
mov eax, edi
call fcn.00437cf0
movzx eax, al
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x94]
mov ecx, edi
call fcn.00437c90
cmp byte [edi + 0x181], 0
mov eax, dword [eax]
mov dword [esp + 0xc], eax
je 0x438f96
mov edx, eax
shr edx, 0x18
movzx ecx, bl
add edx, 1
imul edx, ecx
sar edx, 8
mov bl, dl
jmp 0x438f96
mov eax, dword [esp + 0x38]
movzx edx, byte [eax]
mov cl, byte [eax + 1]
add eax, 1
add eax, 1
mov byte [esp + 0xc], dl
movzx edx, byte [eax]
add eax, 1
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], dl
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
cmp dword [edi + 0x28], 0
je 0x438fa6
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x34], eax
jmp 0x438faa
cmp eax, dword [esp + 0x30]
jne 0x438fb7
cmp byte [esp + 0x16], 0
jne 0x43903a
test bl, bl
je 0x43903a
cmp bl, 0xff
jne 0x438fe0
mov cl, byte [esp + 0xc]
mov dl, byte [esp + 0xd]
mov al, byte [esp + 0xe]
mov byte [ebp], cl
add ebp, 1
mov byte [ebp], dl
add ebp, 1
mov byte [ebp], al
add ebp, 1
jmp 0x43903d
movzx ecx, byte [ebp]
movzx edx, byte [esp + 0xc]
mov al, bl
not al
movzx eax, al
imul ecx, eax
movzx esi, bl
imul edx, esi
add ecx, edx
movzx edx, byte [esp + 0xd]
sar ecx, 8
imul edx, esi
mov byte [ebp], cl
movzx ecx, byte [ebp + 1]
add ebp, 1
imul ecx, eax
add ecx, edx
movzx edx, byte [esp + 0xe]
sar ecx, 8
imul edx, esi
mov byte [ebp], cl
movzx ecx, byte [ebp + 1]
add ebp, 1
imul ecx, eax
add ecx, edx
sar ecx, 8
mov byte [ebp], cl
add ebp, 1
jmp 0x43903d
add ebp, 3
mov edx, dword [esp + 0x3c]
mov eax, 1
add dword [esp + 0x10], eax
sub dword [esp + 0x18], eax
jne 0x438ef0
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
add dword [esp + 0x20], eax
add edx, 1
sub dword [esp + 0x24], 1
mov dword [esp + 0x3c], edx
jne 0x438eb0
jmp 0x43930f
cmp dword [esp + 0x2c], 0
fild dword [esp + 0x24]
fidiv dword [esp + 0x1c]
fstp dword [esp + 0x98]
fild dword [edi + 0x10]
fidiv dword [esp + 0x10]
fstp dword [esp + 0x9c]
jle 0x43930f
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
fild dword [edi + 0x10]
push ecx
fild dword [esp + 0x24]
fmul dword [esp + 0xa0]
fsubp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.00438720
add esp, 4
call fcn.0049ddc0
xor ecx, ecx
test eax, eax
setl cl
mov edx, dword [esp + 0x10]
lea ebp, [edx + esi]
mov dword [esp + 0x3c], 0
sub ecx, 1
and ecx, eax
mov eax, dword [edi + 0xc]
imul eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x30]
imul eax, ecx
add eax, dword [edi + 0x34]
cmp dword [esp + 0x28], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x90], eax
jle 0x4392f4
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0xc0]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
sub esp, 8
fmul dword [esp + 0xa0]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp qword [esp]
call fcn.0049dfc0
fstp dword [esp + 0x20]
add esp, 8
fld dword [esp + 0x18]
call fcn.0049ddc0
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and ecx, eax
cmp byte [esp + 0x17], 0
mov dword [esp + 0x18], ecx
je 0x43919e
mov edx, dword [edi + 0x1bc]
mov eax, dword [esp + 0x58]
add edx, ecx
mov al, byte [edx + eax]
jmp 0x4391a0
or al, 0xff
movzx ebx, byte [edi + 0x180]
add ebx, 1
movzx edx, al
imul ebx, edx
sar ebx, 8
cmp dword [edi + 0x28], 0
je 0x43920d
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00437cf0
mov ecx, dword [esp + 0x18]
movzx eax, al
mov dword [esp + 0x34], eax
mov eax, edi
call fcn.00437cf0
mov ecx, edi
push eax
lea eax, [esp + 0xb8]
call fcn.00437c90
cmp byte [edi + 0x181], 0
mov eax, dword [eax]
mov dword [esp + 0xc], eax
je 0x439234
mov ecx, eax
shr ecx, 0x18
movzx edx, bl
add ecx, 1
imul ecx, edx
sar ecx, 8
mov bl, cl
jmp 0x439234
mov eax, dword [esp + 0x90]
lea eax, [eax + ecx*2]
add eax, ecx
mov cl, byte [eax]
mov dl, byte [eax + 1]
add eax, 1
mov al, byte [eax + 1]
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], dl
mov byte [esp + 0xe], al
mov eax, dword [esp + 0xc]
cmp dword [edi + 0x28], 0
je 0x439244
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x34], ecx
jmp 0x439248
cmp eax, dword [esp + 0x30]
jne 0x439255
cmp byte [esp + 0x16], 0
jne 0x4392d8
test bl, bl
je 0x4392d8
cmp bl, 0xff
jne 0x43927e
mov dl, byte [esp + 0xc]
mov al, byte [esp + 0xd]
mov cl, byte [esp + 0xe]
mov byte [ebp], dl
add ebp, 1
mov byte [ebp], al
add ebp, 1
mov byte [ebp], cl
add ebp, 1
jmp 0x4392db
movzx edx, byte [ebp]
movzx ecx, byte [esp + 0xc]
mov al, bl
not al
movzx eax, al
imul edx, eax
movzx esi, bl
imul ecx, esi
add edx, ecx
movzx ecx, byte [esp + 0xd]
sar edx, 8
imul ecx, esi
mov byte [ebp], dl
movzx edx, byte [ebp + 1]
add ebp, 1
imul edx, eax
add edx, ecx
sar edx, 8
mov byte [ebp], dl
movzx edx, byte [ebp + 1]
add ebp, 1
imul edx, eax
movzx eax, byte [esp + 0xe]
imul eax, esi
add edx, eax
sar edx, 8
mov byte [ebp], dl
add ebp, 1
jmp 0x4392db
add ebp, 3
mov eax, dword [esp + 0x3c]
add eax, 1
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
jl 0x43913a
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x10], ecx
mov eax, 1
sub dword [esp + 0x20], eax
sub dword [esp + 0x38], eax
jne 0x4390be
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
push 0
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x50]
push esi
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0xe0]
push ecx
push edx
push eax
call dword [0x4a705c]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x40]
push ecx
push esi
call dword [0x4a70ac]
push eax
call dword [0x4a70cc]
push esi
call dword [0x4a70c4]
mov ebp, dword [esp + 0xbc]
mov edx, dword [esp + 0xa0]
push edx
push ebp
call dword [0x4a706c]
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0xc