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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
xor esi, esi
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x4c], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x48]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x10], al
test edi, edi
je 0x402262
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x402262
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x10]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
sub byte [esi + 0x433a60], 0x1a
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x54], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x50]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x14], al
test edi, edi
je 0x4022cc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4022cc
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
dec byte [esi + 0x433a60]
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x5c], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x58]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x18], al
test edi, edi
je 0x402335
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x402335
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0xb0
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x64], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x60]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x1c], al
test edi, edi
je 0x40239f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40239f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
xor byte [esi + 0x433a60], 0x8d
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x6c], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x68]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x20], al
test edi, edi
je 0x402409
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x402409
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0x6e
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x74], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x70]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x24], al
test edi, edi
je 0x402473
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x402473
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x24]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
xor byte [esi + 0x433a60], 0x40
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x7c], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x78]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x28], al
test edi, edi
je 0x4024dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4024dd
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x28]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0x93
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x84], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x80]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x2c], al
test edi, edi
je 0x40254d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40254d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x2c]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0xb1
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x8c], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x88]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x30], al
test edi, edi
je 0x4025bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4025bd
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x30]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
xor byte [esi + 0x433a60], 0xca
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x94], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x90]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x34], al
test edi, edi
je 0x40262d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40262d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x34]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
xor byte [esi + 0x433a60], 0xe2
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x9c], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x98]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x38], al
test edi, edi
je 0x40269d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40269d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x38]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0x3d
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0xa4], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0xa0]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x3c], al
test edi, edi
je 0x40270d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40270d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x3c]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0xef
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0xac], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0xa8]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x40], al
test edi, edi
je 0x40277d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40277d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x40]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0x59
call fcn.00403400
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0xb4], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0xb0]
push eax
call fcn.004031b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x44], al
test edi, edi
je 0x4027ed
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4027ed
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x44]
mov ecx, ebx
call fcn.00403e80
mov ecx, ebx
call fcn.00403be0
add byte [esi + 0x433a60], 0xf3
inc esi
cmp esi, 0x23000
jb 0x402211
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret