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

Disassembly:
sub esp, 0xb70
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x24]
cmp eax, 1
push esi
jne 0x423032
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x422ff1
call fcn.00426120
mov ecx, dword [esp + 0xb8c]
fld qword [esp + 0xb7c]
mov edx, dword [esp + 0xb88]
mov esi, dword [ebp]
push eax
mov eax, dword [esp + 0xb94]
push eax
mov eax, dword [esp + 0xb8c]
push ecx
push edx
push eax
call fcn.004fae80
push eax
mov ecx, ebp
call dword [esi + 0x14]
pop esi
pop ebp
add esp, 0xb70
ret 0x20
cmp eax, 2
jne 0x423870
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ebx
push edi
mov edi, dword [ecx + 0x30]
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
mov dword [esp + 0x40], edi
call dword [edx + 0x24]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x42386e
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x423074
call fcn.00426120
mov edx, dword [esp + 0x94]
mov esi, eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0x7fffffff
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xb8], al
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0xa4]
call fcn.0049c9d0
test byte [ebx + 0x38], 4
movzx ecx, word [ebx + 0x36]
je 0x4230ed
mov edx, dword [esp + 0x9c]
lea eax, [edx + ecx*2]
jmp 0x4230f6
mov eax, dword [esp + 0x9c]
add eax, ecx
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xb94]
add eax, 6
mov dword [esp + 0x9c], eax
add eax, edx
mov edx, dword [esp + 0xb90]
push ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
push edx
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x34], eax
je 0x42386e
cmp esi, 8
mov dword [esp + 0x2c], 0
jl 0x423156
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
test al, al
je 0x423156
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x2c]
mov dword [esp + 0x2c], eax
cmp esi, 8
mov dword [esp + 0x38], 0
jl 0x423186
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x34]
test eax, eax
je 0x423186
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.00427dd0
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x18]
add eax, 0x4c
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push eax
push 0x28
mov dword [esp + 0x98], edx
call fcn.0043f690
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
add eax, 0xf0
push eax
call fcn.0043e2d0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
add esp, 0x14
test eax, eax
jne 0x4231ed
call fcn.00426120
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x20]
cmp esi, 7
jl 0x423206
test byte [ebx + 0x38], 0x20
mov byte [esp + 0x13], 1
jne 0x42320b
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0043e900
fld qword [esp + 0xb8c]
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
je 0x4232b2
call fcn.004fae80
mov ecx, eax
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x423266
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x58], eax
jmp 0x423270
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xb8c]
mov eax, ecx
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x4232a6
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
shl edx, 2
mov dword [esp + 0x5c], edx
jmp 0x4232c6
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x5c], eax
jmp 0x4232c6
call fcn.004fae80
mov ecx, dword [esp + 0xb8c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
cmp byte [ebx + 0x7e], 0x4b
mov esi, 0x400
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x44800000
jne 0x4232ee
mov esi, 0x5000
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x46a00000
mov eax, dword [ebp + 4]
test eax, eax
je 0x423345
mov eax, dword [eax + 0x38]
test eax, eax
je 0x423345
mov ecx, eax
call fcn.004b4e30
test al, al
je 0x423345
cmp dword [esp + 0x60], 1
je 0x42331b
lea edx, [esp + 0x48]
push edx
call fcn.0043dd00
add esp, 4
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x423329
neg eax
fld dword [0x5f6864]
mov dword [esp + 0x14], eax
fdiv dword [esp + 0x1c]
fimul dword [esp + 0x14]
fst dword [esp + 0x54]
fstp dword [esp + 0x48]
jmp 0x423384
cmp dword [esp + 0x60], 1
jne 0x423359
lea ecx, [esp + 0x48]
push ecx
call fcn.0043dd40
add esp, 4
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x423367
neg eax
mov ecx, eax
mov eax, 0x10000
cdq
idiv esi
mov dword [esp + 0x60], 0
imul eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0xb9c]
mov edi, dword [esp + 0xb98]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x44], esi
je 0x423464
mov eax, dword [ebx + 4]
push eax
call fcn.00472a70
add esp, 4
test al, al
je 0x423464
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x210]
test eax, eax
jne 0x4233cc
call fcn.004a0d20
cmp eax, 8
jl 0x423464
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x30]
call fcn.0048e800
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x423464
mov eax, dword [esp + 0x24]
push eax
call fcn.00472dd0
mov esi, eax
mov eax, dword [ebp + 4]
lea ecx, [eax + 0x2ec]
mov dword [esp + 0x24], edi
mov eax, dword [ecx]
add esp, 4
test eax, eax
mov dword [esp + 0x44], esi
je 0x423421
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.0046bed0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x23]
cmp al, 0xff
je 0x423464
movzx ecx, byte [esp + 0x20]
movzx eax, al
inc eax
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
shr edx, 8
movzx edx, dl
imul edx, eax
sar edx, 8
mov byte [esp + 0x21], dl
mov ecx, dword [esp + 0x20]
shr ecx, 0x10
movzx ecx, cl
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x22], cl
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x423472
neg eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x540]
mov ebx, dword [edx]
mov ecx, dword [esp + 0xb94]
xor eax, eax
test esi, esi
mov dword [esp + 0x14], ebx
je 0x423630
test ecx, ecx
fld qword [esp + 0xb84]
fstp dword [esp + 0x3c]
mov dword [esp + 0x28], eax
fild dword [esp + 0xb8c]
fstp dword [esp + 0x40]
jle 0x423861
mov edi, dword [esp + 0xb90]
mov ebx, dword [esp + 0xb9c]
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov si, word [ecx + eax*2]
cmp si, 0xffff
je 0x423614
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x50]
xor edx, edx
mov dx, word [edi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xbb0]
push esi
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00474320
mov ecx, dword [esp + 0x64]
movzx eax, si
lea eax, [ecx + eax*2]
xor edx, edx
mov dh, byte [eax + 1]
movzx eax, byte [eax]
or edx, eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
je 0x423578
movzx eax, word [edi]
movzx edx, word [edi + 6]
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
mov ecx, dword [esp + 0x30]
or edx, eax
push edx
mov dword [esp + 0x20], 0
call fcn.004408a0
test eax, eax
je 0x423578
movsx ecx, word [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x423586
neg eax
test ebx, ebx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
fidiv dword [esp + 0x30]
fstp dword [esp + 0x14]
je 0x423600
mov ecx, dword [ebx + 4]
call fcn.004951b0
mov ecx, eax
call fcn.004735f0
cmp eax, 1
jne 0x423600
cmp word [edi], 0x20
je 0x423600
lea eax, [ebx + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
fld dword [esp + 0x70]
fdiv dword [esp + 0x68]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
fmul dword [esp + 0x14]
fld dword [esp + 0x78]
fmul dword [0x5f7a88]
faddp st(1)
fstp dword [esp + 0x14]
fild dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fadd dword [esp + 0x14]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0xb94]
inc eax
add edi, 6
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4234d0
jmp 0x423861
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x423861
mov ecx, dword [esp + 0xb90]
mov dword [esp + 0x1c], ecx
jmp 0x423650
mov edx, dword [esp + 0x34]
mov di, word [edx + eax*2]
cmp di, 0xffff
je 0x423842
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x68]
push eax
add ecx, 0xf0
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0043e4f0
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
je 0x4236ca
cmp ebx, 1
jle 0x4236ca
mov esi, dword [esp + 0x78]
mov eax, esi
cdq
idiv ebx
mov ecx, ebx
sar ecx, 1
cmp edx, ecx
jl 0x4236a3
lea eax, [ecx + esi]
cdq
idiv ebx
mov esi, dword [esp + 0x7c]
imul eax, ebx
mov dword [esp + 0x78], eax
mov eax, esi
cdq
idiv dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
cmp edx, ecx
jl 0x4236c3
lea eax, [ecx + esi]
cdq
idiv ebx
imul eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
test byte [eax + 0x38], 8
mov ecx, eax
mov edx, dword [ecx + 0x70]
movzx esi, di
je 0x4236fa
lea eax, [edx + esi*4]
movzx edx, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 2]
movzx eax, byte [eax]
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
jmp 0x423706
lea eax, [edx + esi*2]
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
mov edx, dword [ecx + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0xcc]
call fcn.00421c80
mov eax, dword [esp + 0x134]
mov dword [esp + 0xb7c], edi
mov dword [esp + 0xb78], 1
mov dword [eax], 0
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0xb98]
mov dword [ecx], 0
mov edx, dword [esp + 0x138]
add edi, 0x50
push edi
push eax
mov ecx, ebp
mov word [edx + 4], 0
call fcn.00422ea0
mov ecx, dword [esp + 0x134]
push 0
lea edx, [esp + 0x88]
mov dword [ecx + 4], eax
push edx
push 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x13c], 1
call fcn.0048ee10
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov ch, byte [eax + esi*2 + 1]
mov cl, byte [eax + esi*2]
mov esi, ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4237e6
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
movzx edx, word [eax]
movzx eax, word [eax + 6]
shl edx, 0x10
or edx, eax
push edx
mov dword [esp + 0x30], 0
call fcn.004408a0
test eax, eax
je 0x4237e6
movsx ecx, word [esp + 0x28]
add esi, ecx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x4237f4
neg eax
imul eax, esi
cdq
idiv dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x13]
add eax, edx
test cl, cl
je 0x42382e
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x58]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x58], edx
jmp 0x423832
add dword [esp + 0x58], eax
lea ecx, [esp + 0xbc]
call fcn.0049d140
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb94]
inc eax
add edx, 6
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x423650
mov eax, dword [esp + 0x34]
push eax
call fcn.005dd350
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xb70
ret 0x20