Function at 0x4219d0
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 0x421a32
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x4219f1
call fcn.00424b30
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.004eb100
push eax
mov ecx, ebp
call dword [esi + 0x14]
pop esi
pop ebp
add esp, 0xb70
ret 0x20
cmp eax, 2
jne 0x422270
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 0x42226e
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x421a74
call fcn.00424b30
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], SysStringLen
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.00490d80
test byte [ebx + 0x38], 4
movzx ecx, word [ebx + 0x36]
je 0x421aed
mov edx, dword [esp + 0x9c]
lea eax, [edx + ecx*2]
jmp 0x421af6
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 0x42226e
cmp esi, 8
mov dword [esp + 0x2c], 0
jl 0x421b56
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
test al, al
je 0x421b56
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 0x421b86
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x34]
test eax, eax
je 0x421b86
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.004267b0
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.0043dfd0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
add eax, 0xf0
push eax
call fcn.0043cc10
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
add esp, 0x14
test eax, eax
jne 0x421bed
call fcn.00424b30
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x20]
cmp esi, 7
jl 0x421c06
test byte [ebx + 0x38], 0x20
mov byte [esp + 0x13], 1
jne 0x421c0b
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.0043d240
fld qword [esp + 0xb8c]
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
je 0x421cb2
call fcn.004eb100
mov ecx, eax
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x421c66
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 0x421c70
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 0x421ca6
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 0x421cc6
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x5c], eax
jmp 0x421cc6
call fcn.004eb100
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 0x421cee
mov esi, 0x5000
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x46a00000
mov eax, dword [ebp + 4]
test eax, eax
je 0x421d45
mov eax, dword [eax + 0x38]
test eax, eax
je 0x421d45
mov ecx, eax
call fcn.004a7130
test al, al
je 0x421d45
cmp dword [esp + 0x60], 1
je 0x421d1b
lea edx, [esp + 0x48]
push edx
call fcn.0043c640
add esp, 4
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x421d29
neg eax
fld dword [0x5d7850]
mov dword [esp + 0x14], eax
fdiv dword [esp + 0x1c]
fimul dword [esp + 0x14]
fst dword [esp + 0x54]
fstp dword [esp + 0x48]
jmp 0x421d84
cmp dword [esp + 0x60], 1
jne 0x421d59
lea ecx, [esp + 0x48]
push ecx
call fcn.0043c680
add esp, 4
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x421d67
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 0x421e64
mov eax, dword [ebx + 4]
push eax
call fcn.004687b0
add esp, 4
test al, al
je 0x421e64
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x210]
test eax, eax
jne 0x421dcc
call fcn.00494a20
cmp eax, 8
jl 0x421e64
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x30]
call fcn.00482e20
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x421e64
mov eax, dword [esp + 0x24]
push eax
call fcn.00468b10
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 0x421e21
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.00461c50
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x23]
cmp al, 0xff
je 0x421e64
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 0x421e72
neg eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x40c]
mov ebx, dword [edx]
mov ecx, dword [esp + 0xb94]
xor eax, eax
test esi, esi
mov dword [esp + 0x14], ebx
je 0x422030
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 0x422261
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 0x422014
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.00469ff0
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 0x421f78
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.0043f230
test eax, eax
je 0x421f78
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 0x421f86
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 0x422000
mov ecx, dword [ebx + 4]
call fcn.004895b0
mov ecx, eax
call fcn.004692c0
cmp eax, 1
jne 0x422000
cmp word [edi], 0x20
je 0x422000
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 [0x5d8848]
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 0x421ed0
jmp 0x422261
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x422261
mov ecx, dword [esp + 0xb90]
mov dword [esp + 0x1c], ecx
jmp 0x422050
mov edx, dword [esp + 0x34]
mov di, word [edx + eax*2]
cmp di, 0xffff
je 0x422242
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x68]
push eax
add ecx, 0xf0
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0043ce30
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
je 0x4220ca
cmp ebx, 1
jle 0x4220ca
mov esi, dword [esp + 0x78]
mov eax, esi
cdq
idiv ebx
mov ecx, ebx
sar ecx, 1
cmp edx, ecx
jl 0x4220a3
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 0x4220c3
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 0x4220fa
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 0x422106
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.004206b0
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.004218a0
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.004831e0
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 0x4221e6
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.0043f230
test eax, eax
je 0x4221e6
movsx ecx, word [esp + 0x28]
add esi, ecx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x4221f4
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 0x42222e
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 0x422232
add dword [esp + 0x58], eax
lea ecx, [esp + 0xbc]
call fcn.004914f0
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 0x422050
mov eax, dword [esp + 0x34]
push eax
call fcn.0043f0a0
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xb70
ret 0x20