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

Disassembly:
push 0xffffffffffffffff
push 0x4511dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [0x4789c0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x160], 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x160], 1
call fcn.00411f90
push 0
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], 2
call fcn.0040e890
mov edi, dword [esp + 0x16c]
mov byte [esp + 0x160], 3
test edi, edi
mov dword [esp + 0x14], 0
jne 0x402045
lea ecx, [esp + 0xf0]
mov byte [esp + 0x160], 7
call fcn.004410bd
lea ecx, [esp + 0xec]
mov byte [esp + 0x160], 6
call fcn.004410bd
lea ecx, [esp + 0xe4]
mov byte [esp + 0x160], 5
call fcn.004410bd
mov byte [esp + 0x160], 4
jmp 0x402c04
mov eax, dword [esp + 0x168]
mov eax, dword [eax + 4]
test eax, eax
je 0x402bc0
jmp 0x40205d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x402bc0
mov esi, dword [eax + 8]
mov ecx, dword [eax]
push edi
push esi
mov dword [esp + 0x2c], ecx
call fcn.00402dd0
add esp, 8
test eax, eax
je case.0x402093.11
mov eax, dword [esi + 4]
lea ecx, [eax - 1]
cmp ecx, 0x2a
ja case.0x402093.11
jmp dword [ecx*4 + 0x402c78]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x402146
mov eax, dword [esi + 0x10]
lea ebp, [edi + 0x1134]
lea edx, [esp + 0x5c]
push eax
push edx
mov ecx, ebp
call fcn.00411a30
mov ebx, dword [eax]
mov eax, dword [esi + 0xc]
push eax
lea eax, [esp + 0x7c]
push eax
mov ecx, ebp
mov byte [esp + 0x168], 8
call fcn.00411a30
mov ecx, dword [eax]
mov esi, dword [esi + 8]
lea edx, [esp + 0x6c]
mov dword [esp + 0x20], ecx
push esi
push edx
mov ecx, ebp
mov byte [esp + 0x168], 9
call fcn.00411a30
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
push 1
push ebx
push ecx
push eax
mov byte [esp + 0x170], 0xa
call fcn.00406670
add esp, 0x10
lea ecx, [esp + 0x6c]
mov byte [esp + 0x160], 9
call fcn.004410bd
lea ecx, [esp + 0x78]
mov byte [esp + 0x160], 8
call fcn.004410bd
lea ecx, [esp + 0x5c]
mov byte [esp + 0x160], 3
call fcn.004410bd
jmp case.0x402093.11
push ecx
lea edx, [esi + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00440e32
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea ecx, [esi + 0x10]
mov byte [esp + 0x16c], 0xb
lea ebx, [edi + 0x1134]
call fcn.00405090
push ecx
mov ecx, ebx
mov edx, esp
mov dword [esp + 0x78], esp
push eax
push edx
call fcn.00411a30
lea ecx, [esi + 0xc]
mov byte [esp + 0x170], 0xc
call fcn.00405090
push ecx
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
push ecx
mov ecx, ebx
call fcn.00411a30
lea ecx, [esi + 8]
mov byte [esp + 0x174], 0xd
call fcn.00405090
push ecx
mov edx, esp
mov dword [esp + 0x34], esp
push eax
push edx
jmp 0x40223c
push ecx
lea eax, [esi + 0x20]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00440e32
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
push ecx
push edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x16c], 0xe
lea ebx, [edi + 0x1134]
call fcn.00405090
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
push ecx
mov ecx, ebx
call fcn.00411a30
lea ecx, [esi + 0xc]
mov byte [esp + 0x170], 0xf
call fcn.00405090
push ecx
mov ecx, ebx
mov edx, esp
mov dword [esp + 0x7c], esp
push eax
push edx
call fcn.00411a30
lea ecx, [esi + 8]
mov byte [esp + 0x174], 0x10
call fcn.00405090
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push ecx
mov ecx, ebx
call fcn.00411a30
mov byte [esp + 0x178], 3
call fcn.004063d0
add esp, 0x18
jmp case.0x402093.11
mov esi, dword [esi + 0x1c]
lea edx, [esp + 0x34]
push esi
push edx
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x11
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
lea ecx, [edi + 0x68]
push ecx
lea ecx, [esp + 0x14]
call fcn.004411aa
lea edx, [esi + 8]
lea eax, [esp + 0x74]
push edx
push 0x475230
push eax
call fcn.0044137a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0x12
call fcn.00441489
lea ecx, [esp + 0x74]
mov byte [esp + 0x160], 3
call fcn.004410bd
mov edx, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
xor eax, eax
test edx, edx
sete al
push eax
push ecx
call dword [0x45464c]
jmp case.0x402093.11
push edi
push esi
call fcn.004037e0
add esp, 8
jmp case.0x402093.11
push edi
push esi
call fcn.00404b90
add esp, 8
jmp case.0x402093.11
push edi
push esi
call fcn.004050a0
mov edx, dword [esp + 0x17c]
mov eax, dword [esp + 0x178]
push edx
push edi
push eax
call fcn.00405eb0
add esp, 0x14
jmp case.0x402093.11
push edi
push esi
call fcn.00405330
mov ecx, dword [esp + 0x17c]
mov edx, dword [esp + 0x178]
push ecx
push edi
push edx
call fcn.00405eb0
add esp, 0x14
jmp case.0x402093.11
mov ebx, dword [esp + 0x174]
push ebx
call fcn.00442caa
push eax
lea ecx, [esp + 0xf8]
call fcn.004120a0
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0xf4]
push eax
call fcn.00412110
push edi
push esi
call fcn.00405510
add esp, 8
lea ecx, [esp + 0xf4]
call fcn.00412050
push ebx
jmp 0x402ba3
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x3c]
lea ebx, [edi + 0x1134]
push eax
push ecx
mov ecx, ebx
call fcn.00411a30
mov eax, dword [eax]
mov esi, dword [esi + 0x4c]
push eax
push esi
mov ecx, ebx
mov byte [esp + 0x168], 0x13
call fcn.00411980
lea ecx, [esp + 0x3c]
mov byte [esp + 0x160], 3
call fcn.004410bd
jmp 0x402b9b
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0x64]
lea ebp, [edi + 0x1134]
push eax
push ecx
mov ecx, ebp
call fcn.00411a30
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x164], 0x14
call fcn.004411aa
lea ecx, [esp + 0x64]
mov byte [esp + 0x160], 3
call fcn.004410bd
mov eax, dword [esi + 0x58]
lea edx, [esp + 0x44]
push eax
push edx
mov ecx, ebp
call fcn.00411a30
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x164], 0x15
call fcn.004411aa
lea ecx, [esp + 0x44]
mov byte [esp + 0x160], 3
call fcn.004410bd
mov eax, dword [esi + 0x50]
mov ecx, ebp
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00411a30
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x164], 0x16
call fcn.004411aa
lea ecx, [esp + 0x80]
mov byte [esp + 0x160], 3
call fcn.004410bd
mov ecx, dword [esi + 0x94]
mov dword [esp + 0xe8], ecx
lea ecx, [esp + 0x84]
call fcn.00441b84
cmp eax, 1
jne 0x4024dd
mov edx, dword [esp + 0xec]
mov esi, dword [esi + 0x4c]
push edx
push esi
mov ecx, ebp
call fcn.00411980
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x170]
push eax
push edi
push ecx
jmp 0x402bac
mov eax, dword [esi + 0x6c]
lea ebp, [edi + 0x1134]
lea edx, [esp + 0x28]
push eax
push edx
mov ecx, ebp
call fcn.00411a30
mov ebx, dword [eax]
mov esi, dword [esi + 0x58]
lea eax, [esp + 0x4c]
push esi
push eax
mov ecx, ebp
mov byte [esp + 0x168], 0x17
call fcn.00411a30
mov eax, dword [eax]
mov ecx, dword [esp + 0x174]
push 0x30
push ebx
push eax
push ecx
call dword [0x454584]
lea ecx, [esp + 0x4c]
call fcn.004410bd
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 3
call fcn.004410bd
jmp case.0x402093.11
mov ecx, dword [esp + 0x174]
xor edx, edx
cmp eax, 0x14
push ecx
sete dl
mov eax, edx
mov edx, dword [esp + 0x174]
push edx
push edi
push eax
push ecx
add esi, 0x98
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00440e32
call fcn.00404a50
add esp, 0x14
jmp case.0x402093.11
call fcn.004421e3
test eax, eax
je 0x4025b0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
push 6
mov ecx, eax
call fcn.0044211c
jmp case.0x402093.11
xor eax, eax
push 6
mov ecx, eax
call fcn.0044211c
jmp case.0x402093.11
call fcn.004421e3
test eax, eax
je 0x4025de
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
push 1
mov ecx, eax
call fcn.0044211c
jmp case.0x402093.11
xor eax, eax
push 1
mov ecx, eax
call fcn.0044211c
jmp case.0x402093.11
push edi
push esi
call fcn.00405f10
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je case.0x402093.11
mov eax, dword [esi + 0x8c]
test eax, eax
je case.0x402093.11
call fcn.004421e3
test eax, eax
je 0x402627
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x402629
xor eax, eax
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x10
push eax
call dword [0x454588]
jmp case.0x402093.11
push edi
push 0
push ecx
add esi, 0x98
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.00440e32
call fcn.004061c0
jmp 0x402bb1
push edi
push 1
push ecx
add esi, 0x98
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.00440e32
call fcn.004061c0
jmp 0x402bb1
push edi
push 2
push ecx
add esi, 0x98
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.00440e32
call fcn.004061c0
jmp 0x402bb1
mov ecx, dword [edi + 0x112c]
push ecx
mov ecx, edi
call fcn.00407f90
mov esi, dword [esp + 0x174]
push esi
call fcn.00442caa
mov edx, dword [eax + 0x1c]
push 1
push 0
push edx
call dword [0x45458c]
push esi
call fcn.00442caa
mov eax, dword [eax + 0x1c]
push eax
call dword [0x454590]
jmp case.0x402093.11
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 8]
lea ecx, [esp + 0x54]
xor ebx, ebx
push esi
push ecx
test eax, eax
lea ecx, [edi + 0x1134]
sete bl
call fcn.00411a30
mov eax, dword [eax]
push ebx
push eax
call dword [0x45464c]
lea ecx, [esp + 0x54]
call fcn.004410bd
jmp case.0x402093.11
push 1
push 0
call dword [0x45464c]
jmp case.0x402093.11
mov eax, dword [edi + 0x50]
test eax, eax
je case.0x402093.11
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x68]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x475228
push ecx
call fcn.0043f1f7
mov edx, dword [edi + 0x50]
add esp, 0x10
add edx, 0x18
lea ecx, [esp + 0x18]
push edx
call fcn.004411aa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0042f58b
mov edx, dword [edi + 0x50]
mov ebp, eax
mov eax, dword [esi + 0x18]
add esp, 8
neg ebp
sbb ebp, ebp
push 1
push 0
inc ebp
mov dword [edx + 0x14], eax
call dword [0x45464c]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + 0x10]
cmp ecx, 3
ja case.default.0x402791
jmp dword [ecx*4 + 0x402d24]
test ebp, ebp
je 0x402880
mov eax, dword [eax + 4]
push 3
push eax
call fcn.00413460
add esp, 8
jmp case.default.0x402791
mov eax, dword [edi + 0x50]
test eax, eax
je case.0x402093.11
mov eax, dword [esi + 8]
lea ecx, [esp + 0x7c]
push eax
push ecx
lea ecx, [edi + 0x1134]
call fcn.00411a30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0x18
call fcn.004411aa
lea ecx, [esp + 0x7c]
mov byte [esp + 0x160], 3
call fcn.004410bd
mov edx, dword [edi + 0x50]
lea ecx, [esp + 0x18]
add edx, 0x18
push edx
call fcn.004411aa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0042f58b
mov edx, dword [edi + 0x50]
mov ebp, eax
mov eax, dword [esi + 0x18]
add esp, 8
neg ebp
sbb ebp, ebp
push 1
push 0
inc ebp
mov dword [edx + 0x14], eax
call dword [0x45464c]
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + 0x10]
cmp ecx, 3
ja case.default.0x402791
jmp dword [ecx*4 + 0x402d34]
test ebp, ebp
jne case.default.0x402791
mov eax, dword [eax + 4]
push 5
push eax
call fcn.00413460
mov eax, dword [edi + 0x50]
mov ecx, dword [esp + 0x18]
add eax, 4
push ecx
push 7
mov edx, dword [eax]
push edx
call fcn.00413460
add esp, 0x14
jmp case.default.0x402791
test ebp, ebp
je 0x402880
mov eax, dword [eax + 4]
push 3
push eax
call fcn.00413460
add esp, 8
jmp case.default.0x402791
mov ecx, dword [eax + 4]
push 5
push ecx
call fcn.00413460
mov eax, dword [edi + 0x50]
mov edx, dword [esp + 0x18]
add eax, 4
push edx
push 7
mov eax, dword [eax]
push eax
call fcn.00413460
add esp, 0x14
jmp case.default.0x402791
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 4]
push ecx
push 7
push edx
call fcn.00413460
add esp, 0xc
mov ecx, dword [edi + 0x50]
lea eax, [esp + 0x10]
push eax
add ecx, 0x18
call fcn.004411aa
jmp case.0x402093.11
mov eax, dword [edi + 0x50]
test eax, eax
je case.0x402093.11
mov ecx, dword [eax + 4]
push 5
push ecx
call fcn.00413460
add esp, 8
jmp case.0x402093.11
mov eax, dword [edi + 0x50]
test eax, eax
je case.0x402093.11
mov edx, dword [eax + 4]
push 4
push edx
call fcn.00413460
add esp, 8
jmp case.0x402093.11
lea eax, [esp + 0x2c]
push 0x475218
push eax
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x19
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
lea edx, [esp + 0x30]
push 0x475208
push edx
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x1a
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
lea edx, [esp + 0x38]
push 0x4751fc
push edx
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x1b
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x38]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
lea edx, [esp + 0x40]
push 0x4751f0
push edx
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x1c
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x40]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
lea edx, [esp + 0x48]
push 0x4751e0
push edx
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x1d
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x48]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
lea edx, [esp + 0x50]
push 0x4751d4
push edx
lea ecx, [edi + 0x1134]
call fcn.00411a30
mov ecx, dword [esp + 0x174]
mov eax, dword [eax]
push ecx
push edi
push eax
mov byte [esp + 0x16c], 0x1e
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x50]
mov esi, eax
mov byte [esp + 0x160], 3
call fcn.004410bd
test esi, esi
je case.0x402093.11
mov dword [esp + 0x14], 1
jmp case.0x402093.11
mov eax, dword [esi + 0x6c]
lea ebp, [edi + 0x1134]
lea edx, [esp + 0x60]
push eax
push edx
mov ecx, ebp
call fcn.00411a30
mov ebx, dword [eax]
mov eax, dword [esi + 0x58]
push eax
lea eax, [esp + 0x5c]
push eax
mov ecx, ebp
mov byte [esp + 0x168], 0x1f
call fcn.00411a30
mov eax, dword [eax]
mov ecx, dword [esp + 0x174]
push 0x24
push ebx
push eax
push ecx
call dword [0x454584]
lea ecx, [esp + 0x58]
mov ebx, eax
call fcn.004410bd
lea ecx, [esp + 0x60]
mov byte [esp + 0x160], 3
call fcn.004410bd
mov esi, dword [esi + 0x4c]
cmp ebx, 6
jne 0x402b8e
push 0x4751d0
jmp 0x402b93
push 0x4751cc
push esi
mov ecx, ebp
call fcn.00411980
mov edx, dword [esp + 0x174]
push edx
mov eax, dword [esp + 0x174]
push edi
push eax
call fcn.00405eb0
add esp, 0xc
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x402059
lea ecx, [esp + 0xf0]
mov byte [esp + 0x160], 0x23
call fcn.004410bd
lea ecx, [esp + 0xec]
mov byte [esp + 0x160], 0x22
call fcn.004410bd
lea ecx, [esp + 0xe4]
mov byte [esp + 0x160], 0x21
call fcn.004410bd
mov byte [esp + 0x160], 0x20
lea ecx, [esp + 0xe0]
call fcn.004410bd
lea ecx, [esp + 0x84]
mov byte [esp + 0x160], 2
call fcn.004417c5
lea ecx, [esp + 0xf4]
mov byte [esp + 0x160], 1
call fcn.00411fe0
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 0
call fcn.004410bd
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.004410bd
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret