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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
cmp eax, 1
push ebx
push ebp
push esi
push edi
push ecx
pop esi
jl 0x430fe3
cmp eax, 8
jg 0x430fe3
cmp dword [esp + 0x34], 2
jl 0x430fe3
call fcn.00430b60
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
or ebp, ebp
jg 0x430f93
or ecx, ecx
jle 0x430fe3
mov edi, dword [esp + 0x38]
or edi, edi
je 0x430fef
cmp dword [edi], 0
jge 0x430fa6
mov dword [edi], 0
mov eax, dword [edi + 4]
or eax, eax
jge 0x430fb4
mov dword [edi + 4], 0
cmp dword [edi + 8], ebp
jle 0x430fbc
mov dword [edi + 8], ebp
cmp dword [edi + 0xc], ecx
jle 0x430fc4
mov dword [edi + 0xc], ecx
mov ebp, dword [edi + 8]
mov ebx, dword [edi]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub ebp, ebx
sub ecx, edx
test ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], ecx
jle 0x430fe3
or ecx, ecx
jg 0x430ff7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x18
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], ecx
lea eax, [ebp*4]
lea ebx, [esi + 0x58]
mov dword [esp + 0x14], eax
imul eax, ecx
push eax
push ebx
pop ecx
mov dword [esp + 0x1c], eax
call fcn.004107a0
or eax, eax
je 0x430fe3
mov ecx, dword [ebx + 0x10]
mov eax, dword [esi + 0x68]
or ecx, ecx
jne 0x431026
xor ebx, ebx
jmp 0x431029
mov ebx, dword [ebx + 8]
push eax
push ebx
call fcn.00476ad0
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [esi + 0x8c], eax
lea ebx, [esi + 0x78]
shl eax, 2
push eax
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.004107a0
test eax, eax
je 0x430fe3
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x70], ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x74], edx
mov eax, dword [ebx + 0x10]
or eax, eax
jne 0x431073
sub ebx, ebx
jmp 0x431076
mov ebx, dword [ebx + 8]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
call fcn.00411160
add esp, 0xc
lea eax, [esi + 0x90]
test edi, edi
je 0x43109d
push edi
push eax
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x4310b0
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push edx
push ecx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x68]
or eax, eax
jne 0x4310c1
mov dword [esp + 0x24], 0
jmp 0x4310c8
mov edx, dword [esi + 0x60]
mov dword [esp + 0x24], edx
mov edi, dword [esi + 0x98]
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x9c]
sub eax, edi
push eax
pop ebx
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x6c]
dec eax
cmp eax, 7
ja case.default.0x4310f7
jmp dword [eax*4 + 0x4315dc]
mov eax, dword [esp + 0x38]
sub edi, edi
or eax, eax
mov dword [esp + 0x34], edi
jle case.default.0x4310f7
lea ecx, [ebp*4]
mov eax, ecx
neg eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
lea ebx, [eax - 1]
mov eax, dword [esp + 0x24]
imul ebx, ecx
add ebx, eax
lea eax, [ebx + 2]
mov edx, dword [esi + 0x74]
push ebx
lea ecx, [eax - 1]
push ecx
push eax
mov eax, dword [esi + 0x94]
push edx
add eax, edi
mov ecx, esi
push eax
call fcn.00431600
mov eax, dword [ebx]
or ebp, ebp
jle 0x43115c
mov ecx, ebp
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
inc edi
add ebx, ecx
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x43112f
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x10
ret 0x18
mov eax, dword [esp + 0x38]
xor edi, edi
or eax, eax
mov dword [esp + 0x34], edi
jle case.default.0x4310f7
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 2]
mov edx, dword [esi + 0x74]
push ebx
lea ecx, [eax - 1]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push edx
lea ecx, [edi + eax]
push ecx
push esi
pop ecx
call fcn.00431600
mov eax, dword [ebx]
or ebp, ebp
jle 0x4311c0
mov ecx, ebp
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
lea eax, [ebp*4]
inc edi
add ebx, eax
mov eax, dword [esp + 0x38]
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x431194
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x10
ret 0x18
or ebp, ebp
mov dword [esp + 0x34], 0
jle case.default.0x4310f7
mov edx, dword [esp + 0x38]
lea eax, [ebp*4]
lea edi, [edx - 1]
imul edi, eax
add edi, dword [esp + 0x24]
mov edx, dword [esi + 0x70]
lea eax, [edi + 2]
push edi
push edi
pop ebx
lea ecx, [eax - 1]
push ecx
push eax
mov eax, dword [esi + 0x90]
push edx
mov edx, dword [esp + 0x44]
push esi
pop ecx
add eax, edx
push eax
call fcn.00431600
mov edx, dword [esp + 0x38]
mov ecx, dword [edi]
or edx, edx
jle 0x431245
lea eax, [ebp*4]
mov dword [ebx], ecx
sub ebx, eax
dec edx
jne 0x431237
mov eax, dword [esp + 0x34]
add edi, 4
inc eax
cmp eax, ebp
mov dword [esp + 0x34], eax
jl 0x43120a
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x10
ret 0x18
or ebp, ebp
mov dword [esp + 0x34], 0
jle case.default.0x4310f7
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea edi, [edx + ecx - 4]
lea eax, [edi + 2]
mov edx, dword [esi + 0x70]
push edi
mov ebx, edi
lea ecx, [eax - 1]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
add eax, ecx
push edx
push eax
push esi
pop ecx
call fcn.00431600
mov eax, dword [esp + 0x38]
mov ecx, dword [edi]
test eax, eax
jle 0x4312bb
push eax
pop edx
lea eax, [ebp*4]
mov dword [ebx], ecx
sub ebx, eax
dec edx
jne 0x4312ad
mov eax, dword [esp + 0x34]
sub edi, 4
inc eax
cmp eax, ebp
mov dword [esp + 0x34], eax
jl 0x431280
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x10
ret 0x18
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4312ec
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fadd st(0), st(0)
call fcn.004a3fa8
mov edx, dword [esi + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], edx
lea ecx, [eax - 1]
test ecx, ecx
jl case.default.0x4310f7
mov edx, dword [esp + 0x14]
mov eax, edx
neg eax
mov dword [esp + 0x28], eax
mov eax, ecx
imul eax, edx
mov edx, dword [esp + 0x24]
add eax, edx
inc ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
push eax
pop ebx
mov eax, dword [esp + 0x10]
sub edi, edi
or eax, eax
push ebx
pop ebp
jle 0x431379
add ebx, 2
mov eax, dword [esi + 0x90]
mov edx, dword [esp + 0x34]
lea ecx, [ebx - 1]
push ebp
push ecx
mov ecx, dword [esp + 0x38]
add eax, ecx
push ebx
add eax, edi
push edx
push eax
mov ecx, esi
call fcn.00431600
mov eax, dword [esp + 0x10]
inc edi
add ebp, 4
add ebx, 4
cmp edi, eax
jl 0x431345
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
add ebx, edx
inc ecx
dec eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
jne 0x431336
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x10
ret 0x18
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4313b8
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fadd st(0), st(0)
call fcn.004a3fa8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
test eax, eax
jle case.default.0x4310f7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
add ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
lea edx, [ecx + edx - 3]
mov dword [esp + 0x24], edx
or ebp, ebp
jle 0x431426
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x34]
lea eax, [edi - 1]
push eax
lea ecx, [edi + 1]
push edi
push ecx
push edx
push ebx
mov ecx, esi
call fcn.00431600
mov eax, dword [esp + 0x30]
inc ebx
sub edi, 4
dec eax
mov dword [esp + 0x30], eax
jne 0x431401
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
lea eax, [ebp*4]
add edx, eax
mov eax, dword [esp + 0x28]
inc ecx
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], eax
jne 0x4313f1
pop edi
pop esi
pop ebp
push 1
pop eax
nop
nop
pop ebx
add esp, 0x10
ret 0x18
mov ebx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
cmp ebx, eax
mov dword [esp + 0x34], ebx
jl 0x43146c
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fadd st(0), st(0)
call fcn.004a3fa8
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
sub ebx, edi
dec eax
or eax, eax
jl case.default.0x4310f7
lea edx, [ebp*4]
push eax
pop edi
imul edi, edx
add ebx, ecx
mov ecx, edx
add edi, edx
mov edx, dword [esp + 0x24]
neg ecx
lea edx, [edi + edx - 3]
inc eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
or ebp, ebp
jle 0x4314f6
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x34]
lea eax, [edi - 1]
push eax
lea ecx, [edi + 1]
push edi
push ecx
push edx
push ebx
mov ecx, esi
call fcn.00431600
mov eax, dword [esp + 0x30]
inc ebx
sub edi, 4
dec eax
mov dword [esp + 0x30], eax
jne 0x4314cd
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add edi, ecx
inc edx
dec eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], eax
jne 0x4314bd
pop edi
pop esi
pop ebp
push ecx
pop ecx
push 1
pop eax
pop ebx
add esp, 0x10
ret 0x18
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x431535
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fadd st(0), st(0)
call fcn.004a3fa8
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x90]
test ecx, ecx
jle case.default.0x4310f7
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
or eax, eax
mov ebp, edi
jle 0x4315aa
mov ebx, dword [esp + 0x38]
add edi, 2
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x34]
lea ecx, [edi - 1]
push ebp
push ecx
push edi
push edx
push ebx
push esi
pop ecx
call fcn.00431600
mov eax, dword [esp + 0x30]
inc ebx
add ebp, 4
add edi, 4
dec eax
mov dword [esp + 0x30], eax
jne 0x431581
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
shl eax, 2
add edx, eax
mov eax, dword [esp + 0x28]
inc ecx
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], eax
jne 0x431568
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x10
ret 0x18