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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x88
test eax, eax
push ebx
jne 0x4254e6
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x425454
mov al, byte [0x4732d0]
mov ecx, dword [esi + 0x18]
test al, al
je 0x42509f
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
xor edx, edx
cmp eax, 1
jle 0x424f8d
dec eax
test eax, eax
jle 0x424fae
mov ebp, edi
imul ebp, ecx
sar ecx, 1
lea edx, [edx + ebp*4]
jne 0x424fa2
mov ecx, 1
sar edi, 1
jne 0x424fab
mov edi, 1
dec eax
jne 0x424f91
mov eax, dword [esi + 0x30]
xor ebp, ebp
mov dword [esp + 0x14], ebp
push ebp
lea esi, [eax + edx - 4]
mov eax, dword [0x4728b8]
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x425454
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [ebx + 0x10], edx
rep stosd dword es:[edi], eax
mov al, byte [esi]
inc esi
mov dword [esp + 0x10], eax
xor ecx, ecx
fild dword [esp + 0x10]
mov cl, byte [esi]
xor eax, eax
mov dword [esp + 0x10], ecx
mov al, byte [esi + 1]
fmul dword [0x46d420]
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x2c], 0x50
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
fstp dword [esp + 0x38]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], 0x14
fmul dword [0x46d420]
fstp dword [esp + 0x34]
fild dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
fmul dword [0x46d420]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x2c]
push eax
push edx
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx]
call dword [ecx + 0xc]
mov eax, dword [esp + 0x14]
lea edx, [ebx + 0x14]
push edx
mov edx, dword [0x4728e4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x425454
cmp byte [0x4711bc], 0
mov dword [0x4728a0], ecx
mov edx, dword [esi + 0x1c]
mov eax, 1
mov dword [0x4728a8], edx
mov dword [0x472834], eax
je 0x4250e0
mov edi, dword [ebx + 8]
test edi, edi
je 0x4250e0
cmp ecx, edx
jle 0x4250ce
mov ecx, edx
cmp ecx, 1
jle 0x4250e0
sar ecx, 1
inc eax
cmp ecx, 1
jg 0x4250d3
mov dword [0x472834], eax
mov ecx, dword [esi + 0x24]
cmp eax, ecx
jle 0x4250ee
mov eax, ecx
mov dword [0x472834], eax
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jle 0x425100
cmp eax, ecx
jle 0x425100
mov eax, ecx
mov dword [0x472834], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x425139
mov edx, dword [esi + 0x3c]
push 2
mov ecx, 0x473190
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x40]
push 2
mov ecx, 0x4730b8
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x44]
push 2
mov ecx, 0x473170
call fcn.00424e70
test eax, eax
jne 0x425209
mov al, byte [0x4732d5]
test al, al
jne 0x425169
fld qword [esi + 0x48]
fcomp qword [0x46d9d0]
fnstsw ax
test ah, 1
je 0x425180
mov edx, dword [esi + 0x40]
push 2
mov ecx, 0x4730b8
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x30]
push 4
mov ecx, 0x472f60
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x40]
push 2
mov ecx, 0x4730b8
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x3c]
push 2
mov ecx, 0x473190
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x40]
push 2
mov ecx, 0x472f18
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x38]
push 3
mov ecx, 0x4731b0
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x30]
push 4
mov ecx, 0x473150
call fcn.00424e70
test eax, eax
jne 0x425209
mov edx, dword [esi + 0x44]
push 2
mov ecx, 0x473010
call fcn.00424e70
test eax, eax
je 0x425454
mov eax, dword [0x472888]
mov ebx, eax
push eax
mov ecx, dword [eax]
mov dword [esp + 0x2c], ebx
call dword [ecx + 4]
mov eax, dword [0x472834]
mov ebp, dword [0x4727f4]
test eax, eax
mov dword [esp + 0x1c], fcn.00401000
jle 0x42533d
mov edx, dword [0x472888]
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x2c]
push 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push 0
mov dword [esp + 0x34], 0x6c
mov eax, dword [edx]
push ecx
push 0
push edx
call dword [eax + 0x64]
test eax, eax
jne 0x4252ce
mov eax, dword [0x4727f0]
mov ecx, dword [esp + 0x3c]
imul eax, dword [0x4728a0]
mov edx, dword [esp + 0x50]
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x4252be
mov ecx, dword [0x4728a8]
test ecx, ecx
jle 0x4252be
mov dword [esp + 0x10], ecx
mov ecx, eax
mov esi, ebp
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add ebp, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add edx, edi
dec ecx
mov dword [esp + 0x10], ecx
jne 0x42528f
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov eax, dword [0x472888]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x80]
mov edx, dword [0x4728a0]
mov ecx, dword [0x4728a8]
mov eax, dword [0x472834]
mov dword [esp + 0x14], 0
sar edx, 1
sar ecx, 1
cmp eax, 1
mov dword [0x4728a0], edx
mov dword [0x4728a8], ecx
jle 0x425311
mov eax, dword [0x472888]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [0x472888]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
test edx, edx
mov dword [0x472888], edx
je 0x42533d
mov eax, dword [0x472834]
dec eax
test eax, eax
mov dword [0x472834], eax
jg 0x42523b
mov al, byte [0x4732e6]
test al, al
je 0x425432
mov edx, dword [esi + 0x18]
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [0x4728a4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov ecx, 8
lea edi, [esp + 0x74]
mov dword [esp + 0x2c], 0x6c
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], 0x1007
mov dword [esp + 0x94], 0x4005000
cmp eax, 1
rep movsd dword es:[edi], dword [esi]
jle 0x4253b1
mov dword [esp + 0x30], 0x21007
mov dword [esp + 0x44], eax
mov dword [esp + 0x94], 0x4405008
mov eax, dword [0x4728b0]
push 0
lea edx, [esp + 0x30]
push 0x472888
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x425432
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
xor esi, esi
push 0x46dbf0
push ebx
mov dword [esp + 0x20], esi
call dword [eax]
cmp dword [esp + 0x14], esi
je 0x425426
mov eax, dword [0x472888]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
push ecx
mov edx, dword [eax]
push 0x46dbf0
push eax
call dword [edx]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x42541c
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov ebx, dword [0x472888]
mov edx, dword [esp + 0x9c]
mov ecx, dword [ebx]
lea eax, [edx + 0x10]
push eax
push 0x46dbf0
push ebx
call dword [ecx]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ebx, dword [esp + 0x9c]
mov al, byte [0x4732d0]
pop edi
pop esi
pop ebp
test al, al
je 0x425488
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4254e6
mov ecx, dword [0x4728e4]
push eax
push 1
push ecx
mov edx, dword [ecx]
call dword [edx + 0x64]
mov dword [0x470170], 0xffffffff
pop ebx
add esp, 0x88
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4254e6
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
mov edx, dword [0x4728e4]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [0x4728e4]
mov edx, dword [esp + 4]
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
mov eax, dword [0x471130]
test eax, eax
jl 0x4254e6
mov ecx, dword [0x472488]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
cmp ebx, edx
jne 0x4254e6
mov eax, dword [esp + 4]
mov ecx, dword [0x472880]
cmp eax, ecx
je 0x4254e6
mov dword [0x472880], eax
mov byte [0x4732ac], 1
pop ebx
add esp, 0x88
ret