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

Disassembly:
push 0xffffffffffffffff
push 0x420b14
mov eax, dword fs:[0]
push eax
mov eax, 0x8718
call fcn.00415930
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 0x8710], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x428028]
xor eax, esp
push eax
lea eax, [esp + 0x872c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x873c]
mov edi, ecx
lea ecx, [esp + 0xdc]
xor ebx, ebx
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], ebx
call fcn.00401260
lea edx, [esp + 0x1b4]
push edx
mov dword [esp + 0x8738], ebx
call fcn.00401730
mov byte [esp + 0x8734], 1
mov esi, 0x41
mov ebp, vtable.ByteArray.0
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call fcn.0040c404
mov dword [esp + 0x30], eax
add esp, 4
mov byte [eax], bl
mov byte [esp + 0x8734], 2
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
call fcn.0040c404
mov dword [esp + 0x40], eax
add esp, 4
mov byte [eax], bl
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x8738], 3
call fcn.00403040
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
lea ecx, [esp + 0x190]
mov byte [esp + 0x8734], 4
call fcn.0041f4d0
lea ecx, [esp + 0x16c]
mov byte [esp + 0x8734], 5
call fcn.0041eb10
lea ecx, [esp + 0x124]
mov byte [esp + 0x8734], 6
call fcn.0041ed40
lea ecx, [esp + 0x100]
mov byte [esp + 0x8734], 7
call fcn.0041ef10
lea ecx, [esp + 0x148]
mov byte [esp + 0x8734], 8
call fcn.0041f2a0
mov byte [esp + 0x8734], 9
push esi
mov dword [esp + 0x48], vtable.TLVStruct.0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
call fcn.0040c404
mov dword [esp + 0x5c], eax
mov byte [eax], bl
add esp, 4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x8734], 0xa
mov dword [esp + 0x60], vtable.TLVStruct.0
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
push esi
call fcn.0040c404
mov dword [esp + 0x78], eax
mov byte [eax], bl
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x8734], 0xb
push esi
mov dword [esp + 0xc4], vtable.TLVStruct.0
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], esi
call fcn.0040c404
mov dword [esp + 0xd8], eax
mov byte [eax], bl
add esp, 4
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xd8], ebx
mov byte [esp + 0x8734], 0xc
push esi
mov dword [esp + 0x80], vtable.TLVStruct.0
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], esi
call fcn.0040c404
mov dword [esp + 0x94], eax
mov byte [eax], bl
add esp, 4
mov dword [esp + 0x80], ebx
mov dword [esp + 0x94], ebx
push 0x42d778
push 0x42d768
lea ecx, [esp + 0xa0]
mov byte [esp + 0x873c], 0xd
call fcn.0041e440
push 0x42d778
push 0x42d768
lea ecx, [esp + 0x198]
call fcn.0041e440
push 0x42d778
push 0x42d768
lea ecx, [esp + 0x174]
call fcn.0041e440
push 0x42d778
push 0x42d768
lea ecx, [esp + 0x12c]
call fcn.0041e440
push 0x42d778
push 0x42d768
lea ecx, [esp + 0x108]
call fcn.0041e440
push 0x42d778
push 0x42d768
lea ecx, [esp + 0x150]
call fcn.0041e440
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
mov dword [esi], ebp
cmp edi, esi
je 0x40247a
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
cmp dword [edi + 0xc], ebx
je 0x40247a
push eax
call fcn.0040c404
mov edx, dword [esi + 8]
add esp, 4
push edx
push ebx
push eax
mov dword [esi + 0xc], eax
call fcn.0040e390
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0xc]
add esp, 0xc
push eax
push ecx
push edx
call fcn.0040e410
add esp, 0xc
lea ecx, [esp + 0xa8]
call fcn.0041e6d0
mov eax, dword [esp + 0x98]
movzx ecx, ax
movzx eax, ax
add eax, 0xffffeffd
mov dword [esp + 0x18], ecx
cmp eax, 8
ja case.0x4024a5.4100
jmp dword [eax*4 + 0x402e50]
lea ebx, [esp + 0x7c]
xor eax, eax
lea ecx, [esp + 0x98]
call fcn.00401800
mov ebx, 7
cmp dword [esp + 0x80], ebx
je 0x4025c2
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8734], 0xc
call fcn.004076f0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x8734], 0xb
call fcn.004076f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x8734], 0xa
call fcn.004076f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8734], 9
call fcn.004076f0
lea ecx, [esp + 0x148]
mov byte [esp + 0x8734], 8
call fcn.00402f20
mov byte [esp + 0x8734], bl
lea ecx, [esp + 0x100]
call fcn.00402f20
lea ecx, [esp + 0x124]
mov byte [esp + 0x8734], 6
call fcn.00402f20
mov byte [esp + 0x8734], 5
lea ecx, [esp + 0x16c]
call fcn.00402f20
mov byte [esp + 0x8734], 4
lea ecx, [esp + 0x190]
call fcn.00402f20
lea ecx, [esp + 0x98]
mov byte [esp + 0x8734], 3
call fcn.00402f20
lea ecx, [esp + 0x30]
call fcn.00404dd0
lea ecx, [esp + 0x20]
call fcn.00404dd0
lea edi, [esp + 0x1b4]
call fcn.00402e80
lea esi, [esp + 0xdc]
call fcn.004016d0
mov eax, 0x10000076
jmp 0x402e28
lea edi, [esp + 0x84]
lea esi, [esp + 0x20]
call fcn.00404e10
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xbc]
push eax
push ecx
lea ecx, [esp + 0x32c]
mov dword [esp + 0xc4], edx
call fcn.00402060
mov edx, dword [esp + 0xc4]
add esp, 8
mov esi, eax
push edx
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], esi
call fcn.00405020
lea ecx, [esp + 0x30]
push ecx
push esi
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x178]
call fcn.0041e970
lea ecx, [esp + 0x298]
call fcn.00404dd0
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x170]
call fcn.0041e470
mov esi, dword [esp + 0x40]
mov edi, eax
mov byte [esp + 0x8734], 0xe
call fcn.00404e10
lea ecx, [esp + 0x228]
jmp 0x402c34
lea ebx, [esp + 0x60]
xor eax, eax
lea ecx, [esp + 0x98]
call fcn.00401800
cmp dword [esp + 0x64], 1
je 0x4026f2
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8734], 0xc
call fcn.004076f0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x8734], 0xb
call fcn.004076f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x8734], 0xa
call fcn.004076f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8734], 9
call fcn.004076f0
lea ecx, [esp + 0x148]
mov byte [esp + 0x8734], 8
call fcn.00402f20
mov byte [esp + 0x8734], 7
jmp 0x402532
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x2bc]
push edx
call fcn.00401430
add esp, 8
lea ebx, [esp + 0xdc]
mov byte [esp + 0x8734], 0xf
call fcn.00401230
lea esi, [esp + 0x2b8]
mov byte [esp + 0x8734], 0xd
call fcn.004016d0
lea eax, [esp + 0x1b4]
push eax
mov ecx, ebx
push ecx
call fcn.0041c870
mov edx, dword [esp + 0x1bc]
add esp, 8
push edx
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x19c]
call fcn.0041f2d0
lea ecx, [esp + 0x248]
call fcn.00404dd0
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0x194]
call fcn.0041e470
mov esi, dword [esp + 0x40]
mov edi, eax
mov byte [esp + 0x8734], 0x10
call fcn.00404e10
lea ecx, [esp + 0x278]
jmp 0x402c34
lea ebx, [esp + 0x44]
xor eax, eax
lea ecx, [esp + 0x98]
call fcn.00401800
mov ebx, 4
cmp dword [esp + 0x48], ebx
je 0x402866
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8734], 0xc
call fcn.004076f0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x8734], 0xb
call fcn.004076f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x8734], 0xa
call fcn.004076f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8734], 9
call fcn.004076f0
lea ecx, [esp + 0x148]
mov byte [esp + 0x8734], 8
call fcn.00402f20
lea ecx, [esp + 0x100]
mov byte [esp + 0x8734], 7
call fcn.00402f20
lea ecx, [esp + 0x124]
mov byte [esp + 0x8734], 6
call fcn.00402f20
lea ecx, [esp + 0x16c]
mov byte [esp + 0x8734], 5
call fcn.00402f20
mov byte [esp + 0x8734], bl
jmp 0x40256e
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x98]
lea ecx, [esp + 0x4c]
call eax
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
push edx
mov dword [esp + 0x1b8], ecx
call fcn.0041c710
mov ecx, dword [esp + 0x1b8]
add esp, 4
push ecx
push eax
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x130]
mov dword [esp + 0x28], eax
call fcn.0041eb40
lea ecx, [esp + 0x238]
call fcn.00404dd0
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x128]
call fcn.0041e470
mov esi, dword [esp + 0x40]
mov edi, eax
mov byte [esp + 0x8734], 0x11
call fcn.00404e10
lea ecx, [esp + 0x268]
jmp 0x402c34
lea ebx, [esp + 0x44]
xor eax, eax
lea ecx, [esp + 0x98]
call fcn.00401800
mov ebx, 4
cmp dword [esp + 0x48], ebx
jne 0x4027c3
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x98]
lea ecx, [esp + 0x4c]
call eax
mov ecx, dword [eax]
mov dword [esp + 0x1b4], ecx
lea ebx, [esp + 0x60]
mov eax, 1
lea ecx, [esp + 0x98]
call fcn.00401800
cmp dword [esp + 0x64], 1
jne 0x40268a
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x2e0]
push eax
call fcn.00401430
add esp, 8
lea ebx, [esp + 0xdc]
mov byte [esp + 0x8734], 0x12
call fcn.00401230
lea esi, [esp + 0x2dc]
mov byte [esp + 0x8734], 0xd
call fcn.004016d0
mov eax, ebx
lea ebx, [esp + 0x1d8]
call fcn.00401230
lea ebx, [esp + 0xc0]
mov eax, 2
lea ecx, [esp + 0x98]
call fcn.00401800
mov ebx, 5
cmp dword [esp + 0xc4], ebx
je 0x402a4d
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8734], 0xc
call fcn.004076f0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x8734], 0xb
call fcn.004076f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x8734], 0xa
call fcn.004076f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8734], 9
call fcn.004076f0
lea ecx, [esp + 0x148]
mov byte [esp + 0x8734], 8
call fcn.00402f20
lea ecx, [esp + 0x100]
mov byte [esp + 0x8734], 7
call fcn.00402f20
lea ecx, [esp + 0x124]
mov byte [esp + 0x8734], 6
call fcn.00402f20
mov byte [esp + 0x8734], bl
jmp 0x40255a
lea esi, [esp + 0x1b8]
call fcn.00407540
lea ecx, [esp + 0xc8]
push ecx
mov ecx, esi
call fcn.00407670
lea ebx, [esp + 0x7c]
mov eax, 3
lea ecx, [esp + 0x98]
call fcn.00401800
mov ebx, 7
cmp dword [esp + 0x80], ebx
jne 0x4024d0
lea edi, [esp + 0x84]
lea esi, [esp + 0x20]
call fcn.00404e10
lea edx, [esp + 0x30]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x1bc]
push ecx
call fcn.0041d1b0
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x10c]
call fcn.0041ed70
lea ecx, [esp + 0x258]
call fcn.00404dd0
lea ecx, [esp + 0x288]
push ecx
lea ecx, [esp + 0x104]
call fcn.0041e470
mov esi, dword [esp + 0x40]
mov edi, eax
mov byte [esp + 0x8734], 0x13
call fcn.00404e10
lea ecx, [esp + 0x288]
jmp 0x402c34
lea ebx, [esp + 0x44]
xor eax, eax
lea ecx, [esp + 0x98]
call fcn.00401800
mov ebx, 4
cmp dword [esp + 0x48], ebx
jne 0x4027c3
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x98]
lea ecx, [esp + 0x4c]
call eax
mov ecx, dword [eax]
mov dword [esp + 0x1b4], ecx
lea ebx, [esp + 0x60]
mov eax, 1
lea ecx, [esp + 0x98]
call fcn.00401800
cmp dword [esp + 0x64], 1
jne 0x40268a
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x304]
push eax
call fcn.00401430
add esp, 8
lea ebx, [esp + 0xdc]
mov byte [esp + 0x8734], 0x14
call fcn.00401230
lea esi, [esp + 0x300]
mov byte [esp + 0x8734], 0xd
call fcn.004016d0
mov eax, ebx
lea ebx, [esp + 0x1d8]
call fcn.00401230
lea ecx, [esp + 0x1b4]
push ecx
call fcn.0041df60
add esp, 4
lea edx, [esp + 0x1fc]
push edx
mov edx, dword [esp + 0x1b8]
lea ecx, [esp + 0x1bc]
push ecx
push edx
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2b8]
push eax
lea ecx, [esp + 0x15c]
call fcn.0041ef40
lea ecx, [esp + 0x2a8]
call fcn.00404dd0
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0x14c]
call fcn.0041e470
mov esi, dword [esp + 0x40]
mov edi, eax
mov byte [esp + 0x8734], 0x15
call fcn.00404e10
lea ecx, [esp + 0x218]
call fcn.00404dd0
xor ebx, ebx
mov edx, 0x100b
cmp word [esp + 0x18], dx
je 0x402c5f
mov dword [0x42d768], ebx
mov dword [0x42d76c], ebx
mov dword [0x42d770], ebx
mov dword [0x42d774], ebx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8734], 0xc
call fcn.004076f0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x8734], 0xb
call fcn.004076f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x8734], 0xa
call fcn.004076f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8734], 9
call fcn.004076f0
lea eax, [esp + 0x14c]
mov dword [esp + 0x18], eax
mov ebx, eax
mov byte [esp + 0x8734], 0x16
call fcn.004031b0
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.0040c1dc
lea edx, [esp + 0x108]
add esp, 4
mov dword [esp + 0x18], edx
mov ebx, edx
mov byte [esp + 0x8734], 0x17
call fcn.004031b0
mov eax, dword [esp + 0x104]
push eax
call fcn.0040c1dc
lea ecx, [esp + 0x12c]
add esp, 4
mov dword [esp + 0x18], ecx
mov ebx, ecx
mov byte [esp + 0x8734], 0x18
call fcn.004031b0
mov edx, dword [esp + 0x128]
push edx
call fcn.0040c1dc
lea eax, [esp + 0x174]
add esp, 4
mov dword [esp + 0x18], eax
mov ebx, eax
mov byte [esp + 0x8734], 0x19
call fcn.004031b0
mov ecx, dword [esp + 0x170]
push ecx
call fcn.0040c1dc
lea edx, [esp + 0x198]
add esp, 4
mov dword [esp + 0x18], edx
mov ebx, edx
mov byte [esp + 0x8734], 0x1a
call fcn.004031b0
mov eax, dword [esp + 0x194]
push eax
call fcn.0040c1dc
lea ecx, [esp + 0xa0]
add esp, 4
mov dword [esp + 0x18], ecx
mov ebx, ecx
mov byte [esp + 0x8734], 0x1b
call fcn.004031b0
mov edx, dword [esp + 0x9c]
push edx
call fcn.0040c1dc
mov eax, dword [esp + 0x40]
xor esi, esi
add esp, 4
mov dword [esp + 0x30], ebp
cmp eax, esi
je 0x402dd0
mov ecx, dword [esp + 0x38]
push ecx
push esi
push eax
call fcn.0040e390
mov edx, dword [esp + 0x48]
add esp, 0xc
push edx
call fcn.0040c1dc
add esp, 4
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], ebp
cmp eax, esi
je 0x402e04
mov ecx, dword [esp + 0x28]
push ecx
push esi
push eax
call fcn.0040e390
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
call fcn.0040c1dc
add esp, 4
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1b4]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call fcn.00402e80
lea esi, [esp + 0xdc]
call fcn.004016d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x872c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8710]
xor ecx, esp
call fcn.0040bba8
add esp, 0x8724
ret