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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x110], eax
mov dword [esp + 0xc], ecx
add ecx, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov eax, dword [ecx]
push edi
mov dword [esp + 0x20], ebx
call dword [eax + 0x14]
test ebx, ebx
jne 0x421162
xor eax, eax
inc eax
jmp 0x4218e1
lea ecx, [esp + 0x14]
call fcn.00408918
push ebx
lea ecx, [esp + 0x20]
call fcn.00408975
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov edi, dword [esi]
call fcn.00401a5d
push eax
push 0x1402
mov ecx, esi
call dword [edi]
test eax, eax
je 0x42119a
xor esi, esi
inc esi
jmp 0x4218cd
and dword [esp + 0xcc], 0
lea ecx, [esp + 0x38]
push 7
pop edi
xor eax, eax
mov dword [esp + 0xd0], edi
mov word [esp + 0xbc], ax
call fcn.004104a0
lea ecx, [esp + 0x14]
call fcn.0040892a
lea ecx, [esp + 0x38]
push ecx
push 4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
xor ebx, ebx
inc ebx
test eax, eax
jne 0x4218b3
cmp dword [esp + 0x38], ebx
jne 0x4218b3
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xc8]
call fcn.004019ce
lea ecx, [esp + 0x38]
call fcn.00410510
push ecx
push ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x2e
push eax
lea ecx, [esp + 0xc8]
call fcn.004030e7
and dword [esp + 0x70], 0
mov esi, eax
xor eax, eax
mov dword [esp + 0x74], edi
and dword [esp + 0x88], eax
mov word [esp + 0x60], ax
mov dword [esp + 0x8c], edi
mov word [esp + 0x78], ax
cmp esi, 0xffffffff
jne 0x421254
mov esi, ebx
jmp 0x421458
push esi
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x3c]
call fcn.0040c870
pop ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00401e84
push 0
push ebx
lea ecx, [esp + 0x40]
call fcn.00401751
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xc8]
call fcn.00401ea9
push eax
lea ecx, [esp + 0x7c]
call fcn.00401e84
push 0
push ebx
lea ecx, [esp + 0x40]
call fcn.00401751
and dword [esp + 0xe4], 0
lea ecx, [esp + 0xd4]
xor eax, eax
mov dword [esp + 0xe8], edi
push str..sfxv
mov word [esp + 0xd8], ax
call fcn.00401628
lea edx, [esp + 0xd4]
xor bl, bl
lea ecx, [esp + 0x78]
call fcn.0040c500
test al, al
jne 0x42132f
cmp dword [esp + 0x8c], 8
lea ecx, [esp + 0x78]
mov edx, 0x44ae00
cmovae ecx, dword [esp + 0x78]
call fcn.0040c540
test al, al
je 0x421325
push 0xffffffffffffffff
xor edi, edi
lea eax, [esp + 0xd8]
push edi
push eax
lea ecx, [esp + 0x84]
call fcn.004019ce
inc bl
jmp 0x42148c
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x421448
xor eax, eax
mov dword [esp + 0xa4], edi
push 0x2e
mov word [esp + 0x94], ax
xor edi, edi
pop eax
push ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xac], edi
call fcn.004030e7
cmp eax, 0xffffffff
je 0x421437
lea esi, [eax + 1]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x68]
lea ecx, [esp + 0x40]
call fcn.0040c900
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00401e84
push edi
push 1
lea ecx, [esp + 0x40]
call fcn.00401751
push esi
lea edx, [esp + 0x64]
lea ecx, [esp + 0x3c]
call fcn.0040c870
pop ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00401e84
push edi
push 1
lea ecx, [esp + 0x40]
call fcn.00401751
xor esi, esi
inc esi
xor eax, eax
mov dword [esp + 0x4c], 7
push esi
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3c]
push str._.3d
push eax
mov dword [esp + 0x54], edi
call fcn.0040ca30
add esp, 0xc
lea ecx, [esp + 0x38]
push 2
pop edx
call fcn.0040cc10
cmp dword [esp + 0xa4], 8
lea eax, [esp + 0x90]
push dword [esp + 0xa0]
cmovae eax, dword [esp + 0x94]
push eax
push dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x48]
call fcn.0040315b
lea ecx, [esp + 0x38]
push edi
push 1
test eax, eax
je 0x421478
call fcn.00401751
inc esi
cmp esi, 0x3e7
jbe 0x4213bf
xor ebx, ebx
lea ecx, [esp + 0x90]
inc ebx
push edi
push ebx
call fcn.00401751
mov esi, ebx
push edi
push ebx
lea ecx, [esp + 0xdc]
call fcn.00401751
push 0
push ebx
lea ecx, [esp + 0x80]
call fcn.00401751
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.00401751
jmp 0x4218be
call fcn.00401751
push edi
push 1
lea ecx, [esp + 0x98]
call fcn.00401751
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4214c7
cmp dword [esp + 0x74], 8
lea eax, [esp + 0x60]
push 0x2e
cmovae eax, dword [esp + 0x64]
pop edx
cmp word [eax + ecx*2 - 2], dx
je 0x4214c7
mov esi, 0x44a940
push esi
call fcn.0043413b
pop ecx
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.004021eb
mov ecx, dword [esp + 0x70]
test bl, bl
je 0x4215ac
xor eax, eax
mov dword [esp + 0x4c], 7
cmp dword [esp + 0x8c], 8
mov word [esp + 0x38], ax
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
xor ebx, ebx
push eax
inc ebx
mov dword [esp + 0x4c], edi
push ebx
lea eax, [esp + 0x40]
push str._.03d_s
push eax
call fcn.0040ca30
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0xa4]
call fcn.00401f32
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.00408918
lea ecx, [esp + 0x14]
call fcn.0040892a
mov esi, eax
lea ecx, [esp + 0x10]
push ebx
mov edi, dword [esi]
call fcn.00401a5d
push eax
push ebx
lea eax, [esp + 0x9c]
mov ecx, esi
push eax
call dword [edi + 0x1c]
test eax, eax
jne 0x42158a
push ecx
lea ecx, [esp + 0x14]
call fcn.0040896c
test al, al
jne 0x42158a
lea ecx, [esp + 0x10]
call fcn.0040891e
xor edi, edi
lea ecx, [esp + 0x90]
push edi
push ebx
call fcn.00401751
push edi
push ebx
lea ecx, [esp + 0x40]
call fcn.00401751
mov ecx, dword [esp + 0x70]
jmp 0x4215af
lea ecx, [esp + 0x10]
call fcn.0040891e
xor edi, edi
lea ecx, [esp + 0x90]
push edi
push ebx
call fcn.00401751
lea ecx, [esp + 0x38]
jmp 0x421441
xor ebx, ebx
inc ebx
push 7
xor eax, eax
mov dword [esp + 0x118], edi
mov word [esp + 0x108], ax
pop esi
mov dword [esp + 0x118], esi
cmp ecx, ebx
jae 0x4215e1
push 0x44c590
lea ecx, [esp + 0x108]
call fcn.00401628
jmp 0x42160b
lea eax, [ecx - 1]
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x3c]
call fcn.0040c870
pop ecx
push eax
lea ecx, [esp + 0x108]
call fcn.00401e84
push edi
push ebx
lea ecx, [esp + 0x40]
call fcn.00401751
mov edi, dword [esp + 0x18]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0xfc], ecx
mov ebx, ecx
mov dword [esp + 0x100], esi
mov word [esp + 0xec], ax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], eax
call fcn.00401a5d
mov esi, eax
mov dword [esp + 0x24], esi
and dword [esp + 0x48], 0
xor eax, eax
mov dword [esp + 0x4c], 7
mov word [esp + 0x38], ax
test ebx, ebx
jne 0x42166c
push 0x44c59c
lea ecx, [esp + 0x3c]
call fcn.00401628
jmp 0x421691
cmp dword [esp + 0x8c], 8
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
push eax
push ebx
lea eax, [esp + 0x40]
push str._.03d_s
push eax
call fcn.0040ca30
add esp, 0x10
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x94]
call fcn.00401f32
pop ecx
push eax
lea ecx, [esp + 0xf0]
call fcn.00401e84
push 0
push 1
lea ecx, [esp + 0x98]
call fcn.00401751
lea ecx, [esp + 0x10]
call fcn.00408918
lea ecx, [esp + 0x14]
call fcn.0040892a
push 1
push esi
push 0
mov edx, dword [eax]
lea ecx, [esp + 0xf8]
push ecx
mov ecx, eax
call dword [edx + 0x1c]
test eax, eax
jne 0x42183a
push ecx
lea ecx, [esp + 0x14]
call fcn.0040896c
test al, al
jne 0x42183a
lea edx, [esp + 0xbc]
lea ecx, [esp + 0xec]
call fcn.0040c500
mov ecx, dword [esp + 0x34]
test al, al
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [esp + 0x34], ecx
test ebx, ebx
jne 0x421762
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
push eax
call fcn.004139d4
call fcn.004218f8
test al, al
je 0x42183e
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
push eax
call fcn.004139d4
call fcn.004218f8
test al, al
je 0x42183e
lea ecx, [esp + 0x90]
call fcn.004104a0
lea ecx, [esp + 0x14]
call fcn.0040892a
lea ecx, [esp + 0x90]
push ecx
push 7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
jne 0x42182c
cmp dword [esp + 0x90], 3
jne 0x42182c
mov edi, dword [esp + 0xb0]
lea ecx, [esp + 0x90]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
call fcn.00410510
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
add dword [ecx + 0x48], edi
mov edi, ecx
adc dword [edi + 0x4c], esi
lea ecx, [edi + 0x3c]
call fcn.0042195f
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x30]
call fcn.00421909
mov edx, dword [esp + 0x20]
xor esi, esi
mov ecx, dword [edi + 0x34]
sub ecx, dword [edi + 0x30]
push esi
mov eax, dword [edx]
push esi
sar ecx, 2
push esi
push ecx
mov ecx, edx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
jne 0x421827
lea ecx, [esp + 0x10]
inc ebx
call fcn.0040891e
xor eax, eax
lea ecx, [esp + 0x38]
push esi
inc eax
push eax
call fcn.00401751
mov esi, dword [esp + 0x24]
jmp 0x421644
xor ebx, ebx
inc ebx
jmp 0x421843
lea ecx, [esp + 0x90]
call fcn.00410510
jmp 0x42183e
test ebx, ebx
jne 0x42185a
xor ebx, ebx
inc ebx
mov esi, ebx
lea ecx, [esp + 0x10]
call fcn.0040891e
push 0
push ebx
lea ecx, [esp + 0x40]
call fcn.00401751
jmp 0x42188a
lea ecx, [esp + 0x10]
call fcn.0040891e
xor ebx, ebx
lea ecx, [esp + 0x38]
push 0
inc ebx
push ebx
call fcn.00401751
mov eax, dword [esp + 0x34]
test al, al
je 0x421888
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
sar eax, 2
cmp eax, 2
jae 0x42188e
mov esi, ebx
xor edi, edi
jmp 0x421892
xor edi, edi
mov esi, edi
push edi
push ebx
lea ecx, [esp + 0xf4]
call fcn.00401751
push edi
push ebx
lea ecx, [esp + 0x10c]
call fcn.00401751
jmp 0x42144a
lea ecx, [esp + 0x38]
call fcn.00410510
mov esi, ebx
push 0
push ebx
lea ecx, [esp + 0xc4]
call fcn.00401751
lea ecx, [esp + 0x1c]
call fcn.0040891e
lea ecx, [esp + 0x14]
call fcn.0040891e
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret 0x10