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

Disassembly:
sub esp, 0x9c
xor edx, edx
mov dword [esp + 0x58], edx
push ebx
mov ebx, dword [esp + 0xa4]
push esi
mov dword [esp + 0x5c], edx
push edi
push ebp
mov edi, ebx
shr edi, 0x10
xor eax, eax
mov al, bh
mov ecx, dword [0x4eaac8]
movsx esi, di
shl esi, 6
shl eax, 2
mov dword [esp + 0x6c], eax
mov ebp, dword [ecx + esi + 4]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebp]
mov eax, dword [eax + ecx]
cmp eax, edx
je 0x42ff66
mov ecx, dword [eax]
xor eax, eax
mov al, bl
mov eax, dword [ecx + eax*4]
add eax, ecx
jmp 0x42ff6f
push ebx
call fcn.0048a740
add esp, 4
lea ecx, [esp + 0x5c]
push 8
push ecx
push 0xc
push eax
call fcn.0047ebb0
mov ax, di
add esp, 0x10
shl ax, 0x10
or ax, word [esp + 0x5c]
jle 0x42ffa7
movzx eax, di
shl eax, 0x10
mov ecx, dword [esp + 0x5c]
and ecx, 0xffff
or eax, ecx
mov dword [esp + 0x14], eax
jmp 0x42ffaf
mov dword [esp + 0x14], 0
mov ax, word [esp + 0x5e]
cmp dword [esp + 0x14], 0
mov word [esp + 0x18], ax
je 0x4306de
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.00431280
add esp, 0xc
test eax, eax
jne 0x430008
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0044bac0
add esp, 8
test eax, eax
je 0x4306de
lea edi, [esp + 0x30]
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x64]
lea ecx, [esp + 0x84]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00431300
add esp, 0x10
push 5
push ebx
call fcn.0048bf00
mov word [esp + 0x1a], ax
add esp, 8
push 0x200020c
push ebx
call fcn.0048bf00
add esp, 8
cmp ax, 2
je 0x430069
push 0x200020c
push ebx
call fcn.0048bf00
add esp, 8
cmp ax, 3
je 0x430069
mov dword [esp + 0x2c], 0
jmp 0x430071
mov dword [esp + 0x2c], 1
push 0x2000003
push ebx
call fcn.0048bf00
mov di, ax
add esp, 8
cmp word [esp + 0x12], 1
jne 0x430117
mov eax, dword [0x4eaac8]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [eax + esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + ebp]
test eax, eax
je 0x4300b1
mov ecx, dword [eax]
xor eax, eax
mov al, bl
mov eax, dword [ecx + eax*4]
add eax, ecx
jmp 0x4300ba
push ebx
call fcn.0048a740
add esp, 4
push 0x400
push eax
call fcn.0047eb80
add esp, 8
test ax, ax
je 0x430117
push 0
push 0x400
push ebx
call fcn.0043e720
mov dword [esp + 0x52], eax
add esp, 0xc
cmp dword [esp + 0x2c], 0
jne 0x4300ec
test eax, eax
je 0x430103
push 0
push pe_nt_image_headers32
push 0x400
push ebx
push 6
call fcn.00452990
add esp, 0x14
cmp dword [esp + 0x46], 0
jne 0x43011f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
mov dword [esp + 0x46], 0
cmp dword [esp + 0x2c], 0
je 0x4301e2
movsx eax, word [esp + 0x12]
cmp eax, 2
jl 0x4301ba
cmp eax, 3
jle 0x43017e
cmp eax, 4
jne 0x4301ba
push 0
push 0
push 0x402
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x404
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x406
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x401
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x403
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x405
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x3f4
push ebx
push 6
call fcn.00452990
add esp, 0x14
push 0
push 0
push 0x3f5
push ebx
push 6
call fcn.00452990
add esp, 0x14
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0044bb40
lea ecx, [esp + 0x56]
add esp, 0xc
push ecx
call fcn.00410c00
add esp, 4
cmp word [esp + 0x12], 1
je 0x430216
cmp word [esp + 0x12], 2
jne 0x430279
push 0xf
push ebx
call fcn.0048a920
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x430279
mov eax, dword [0x4eaac8]
mov ecx, dword [eax + esi + 4]
mov esi, dword [esp + 0x6c]
mov edx, dword [ecx]
mov eax, dword [edx + esi]
test eax, eax
je 0x43024a
mov ecx, dword [eax]
xor eax, eax
mov al, bl
mov eax, dword [ecx + eax*4]
add eax, ecx
jmp 0x430253
push ebx
call fcn.0048a740
add esp, 4
push 0xf
push eax
call fcn.0047eb80
lea ecx, [esp + 0x52]
add esp, 8
movsx eax, ax
push eax
push ebp
push ecx
call fcn.00410ca0
add esp, 0xc
push ebp
call fcn.00479b40
add esp, 4
cmp dword [esp + 0x64], ebx
jne 0x430288
mov eax, dword [esp + 0x88]
jmp 0x430291
xor eax, eax
mov dword [esp + 0x88], eax
movsx ebp, word [esp + 0x12]
cmp ebp, 4
ja case.default.0x43029f
jmp dword [ebp*4 + 0x430718]
push 0x401
push ebx
call fcn.0048a920
add esp, 8
mov esi, eax
push 0x402
push ebx
call fcn.0048a920
add esp, 8
mov edi, eax
test esi, esi
jne 0x43032b
test edi, edi
jne 0x43032b
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0044baf0
lea eax, [esp + 0x78]
add esp, 0xc
movsx ecx, word [esp + 0x60]
movsx edx, word [esp + 0x62]
mov dword [esp + 0x7c], ecx
push eax
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
push ecx
push edx
call fcn.004a1170
lea ecx, [esp + 0x28]
lea edx, [esp + 0x78]
add esp, 0xc
push ecx
push edx
call fcn.004a1100
add esp, 8
jmp 0x430359
push 0
push 0x401
push ebx
call fcn.0043e760
movsx eax, ax
mov dword [esp + 0x28], eax
add esp, 0xc
push 0
push 0x402
push ebx
call fcn.0043e760
movsx eax, ax
mov dword [esp + 0x2c], eax
add esp, 0xc
push esi
call fcn.00479b40
add esp, 4
push edi
call fcn.00479b40
add esp, 4
jmp 0x4303f7
lea ecx, [esp + 0x8c]
mov dword [esp + 0x3a], eax
lea eax, [esp + 0x94]
push eax
push ecx
push 0x405
push 0x401
push 0x403
push ebx
call fcn.00430e70
add esp, 0x18
push edi
push eax
call fcn.00430ef0
mov dword [esp + 0x46], eax
add esp, 8
jmp case.default.0x43029f
lea eax, [esp + 0x84]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
push ebx
call fcn.00430f50
add esp, 0x10
test eax, eax
jne 0x4303f7
jmp 0x4303e7
lea eax, [esp + 0x84]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
push ebx
call fcn.00431060
add esp, 0x10
test eax, eax
jne 0x4303f7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
push 0
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0x52]
push ecx
push 1
push edx
call fcn.00410d80
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x5e]
add esp, 0x14
push 0
push ecx
push edx
push 2
push eax
call fcn.00410d80
add esp, 0x14
mov dword [esp + 0x3a], 0
mov dword [esp + 0x3e], 0x10000
cmp dword [esp + 0x56], 0
je 0x4306bd
cmp word [esp + 0x4a], 2
jb 0x4306bd
lea eax, [esp + 0x4a]
push eax
call fcn.004116d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x42]
mov edx, dword [esp + 0x3e]
add esp, 4
push eax
push ecx
push edx
push 0
push 0
push 0x3f4
push ebx
call fcn.0043e7a0
fstp qword [esp + 8]
add esp, 8
push ebx
call fcn.00430a80
mov dword [esp + 0x48], eax
add esp, 0x18
push 0x3f5
push ebx
call fcn.0043dd20
mov ecx, dword [esp + 0x1c]
add esp, 8
push eax
push ecx
call fcn.0043dcd0
add esp, 8
mov edi, eax
cmp dword [0x4ef042], 1
jne 0x4304c7
push ebx
push 2
push 1
call fcn.0044c660
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x4305c8
mov eax, dword [esp + 0x3e]
cmp dword [esp + 0x3a], eax
je 0x4305c8
lea eax, [esp + 0x84]
push ebx
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x90], ebx
push edx
call fcn.00431350
lea ecx, [esp + 0x44]
add esp, 0x10
push 0
push ecx
call fcn.0040d260
lea ecx, [esp + 0x3c]
add esp, 8
push 2
push ecx
call fcn.0040d260
mov ecx, dword [esp + 0x42]
lea edx, [esp + 0x38]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4a], ecx
mov ecx, dword [esp + 0x1c]
add esp, 8
push edx
push eax
push ecx
call fcn.004312c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0xc
push 1
push edi
push ecx
push edx
call fcn.0044beb0
add esp, 0x10
call fcn.00456b40
lea ecx, [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00431280
add esp, 0xc
test eax, eax
je 0x43059a
lea eax, [esp + 0x34]
push 1
push eax
call fcn.0040d260
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 8
push eax
push ecx
push edx
call fcn.004312c0
add esp, 0xc
push 0x200020c
push ebx
call fcn.0048bf00
add esp, 8
test ax, ax
jne 0x4306ae
mov dword [esp + 0x68], 1
mov eax, dword [esp + 0x68]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
xor esi, esi
cmp dword [esp + 0x2c], esi
je 0x430627
cmp ebp, 2
jl 0x430627
cmp ebp, 4
jg 0x430627
mov esi, 1
push 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.0044bd90
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0xc
push esi
push edi
push ecx
push edx
call fcn.0044beb0
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
call fcn.0048bd10
add esp, 4
cmp ax, 4
jne 0x430627
mov eax, dword [esp + 0x14]
push eax
call fcn.00437d50
add esp, 4
mov eax, dword [esp + 0x3e]
lea ecx, [esp + 0x4a]
push eax
push ecx
call fcn.004114a0
mov dword [esp + 0x74], eax
add esp, 8
cmp word [esp + 0x12], 2
mov dword [esp + 0x70], edx
jne 0x430654
mov eax, dword [esp + 0x3e]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x18]
push ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x88], ebx
lea ebx, [esp + 0x88]
push ebx
push eax
push ecx
call fcn.00431350
mov edx, dword [esp + 0x7c]
add esp, 0x10
cmp esi, 1
mov ecx, dword [esp + 0x70]
sbb eax, eax
neg eax
push eax
push 0
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov edx, dword [esp + 0x28]
push edx
call fcn.00430760
lea ecx, [esp + 0x62]
add esp, 0x18
push ecx
call fcn.00410c30
add esp, 4
call fcn.00456b40
mov eax, dword [esp + 0x68]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
lea eax, [esp + 0x4a]
push eax
call fcn.00410c30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
push eax
push ecx
call fcn.004312c0
add esp, 0xc
cmp dword [0x4ef042], 1
jne 0x4306f4
push ebx
push 2
push 1
call fcn.0044c660
add esp, 0xc
cmp dword [0x4ef042], 2
jne 0x43070a
push ebx
push 2
push 2
call fcn.0044c660
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret