Function at 0x40806f
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47eded
mov eax, dword fs:[0]
push eax
sub esp, 0x5f8
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x5f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x608]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x770]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
call dword [0x489350]
push 0x3c
pop esi
push esi
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00463950
mov dword [esp + 0x3c], esi
add esp, 0xc
lea esi, [ebx + 0x18]
mov dword [esp + 0x34], 0x440
cmp dword [esi + 0x14], 8
mov dword [esp + 0x3c], 0x497b0c
jb 0x408114
mov eax, dword [esi]
jmp 0x408116
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x40], eax
cmp dword [ebx + 0x40], ecx
jne 0x408127
mov dword [esp + 0x44], ecx
jmp 0x408136
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], 8
jb 0x408132
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], 1
mov dword [ebx + 0x78], ecx
cmp byte [ebx + 0x7f], cl
je 0x408157
imul eax, dword [ebx + 0x80], 0x3e8
push eax
call dword [0x489364]
call fcn.00461f92
mov dword [ebx + 0xd0], eax
lea eax, [esp + 0x30]
push eax
call dword [0x4893fc]
test eax, eax
jne 0x4088cf
call fcn.00461f92
push 0x497a98
lea ecx, [esp + 0xb8]
mov dword [ebx + 0xd4], eax
call fcn.00403f58
and dword [esp + 0x610], 0
lea ecx, [esp + 0x84]
push esi
mov edx, 0x498164
call fcn.0040ba2a
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0x61c], 1
call fcn.0040442a
push 0
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x618], 0
call fcn.00402e4f
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0xcc]
call fcn.00405444
mov esi, eax
mov byte [esp + 0x610], 2
call dword [0x489374]
mov edx, eax
lea ecx, [esp + 0x15c]
call fcn.00405497
push eax
mov edx, 0x4981a8
mov byte [esp + 0x614], 3
lea ecx, [esp + 0x178]
call fcn.0040b9b0
mov byte [esp + 0x614], 4
lea ecx, [esp + 0x190]
mov edx, eax
mov dword [esp], 0x4981a4
call fcn.0040b97e
pop ecx
push esi
mov edx, eax
mov byte [esp + 0x614], 5
lea ecx, [esp + 0x88]
call fcn.0040b931
pop ecx
push 0xffffffffffffffff
xor esi, esi
mov byte [esp + 0x614], 6
push esi
push eax
lea ecx, [esp + 0xc0]
call fcn.0040442a
push esi
push 1
lea ecx, [esp + 0x8c]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x194]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x17c]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x164]
call fcn.00402e4f
push esi
mov byte [esp + 0x614], 0
push 1
lea ecx, [esp + 0xd4]
call fcn.00402e4f
push 0xb
call fcn.0043228b
pop ecx
mov ecx, eax
lea edx, [ebx + 0x18]
mov edi, ecx
mov dword [esp + 0x1c], ecx
xor eax, eax
lea ecx, [esp + 0xcc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
push edi
call fcn.0042743a
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4082fa
mov eax, dword [eax]
push 0x4981d0
push eax
call fcn.00461ce1
pop ecx
pop ecx
push edi
push 1
lea ecx, [esp + 0xd4]
mov esi, eax
call fcn.00402e0b
test esi, esi
je 0x40848e
push esi
mov esi, dword [esp + 0x20]
push 0xa
push 1
push esi
call fcn.00461ebb
add esp, 0x10
lea ecx, [esp + 0x84]
push esi
call fcn.00402ce4
lea edx, [esp + 0x84]
mov byte [esp + 0x610], 7
lea ecx, [esp + 0x6c]
call fcn.004274c7
mov edi, eax
push 0xa
pop edx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x610], 8
call fcn.004053f1
mov esi, eax
mov edx, 0x27bb
mov byte [esp + 0x610], 9
lea ecx, [esp + 0xe4]
call fcn.004277a3
push esi
mov edx, eax
mov byte [esp + 0x614], 0xa
lea ecx, [esp + 0x190]
call fcn.0040b931
mov byte [esp + 0x614], 0xb
lea ecx, [esp + 0x178]
mov edx, eax
mov dword [esp], 0x4981d8
call fcn.0040b97e
pop ecx
push edi
mov edx, eax
mov byte [esp + 0x614], 0xc
lea ecx, [esp + 0x160]
call fcn.0040b931
mov byte [esp + 0x614], 0xd
lea ecx, [esp + 0xd0]
mov edx, eax
mov dword [esp], 0x4981d4
call fcn.0040b97e
pop ecx
push 0xffffffffffffffff
xor esi, esi
mov byte [esp + 0x614], 0xe
push esi
push eax
lea ecx, [esp + 0xc0]
call fcn.0040442a
push esi
push 1
lea ecx, [esp + 0xd4]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x164]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x17c]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x194]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0xec]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0xa4]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x74]
call fcn.00402e4f
push esi
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x618], 0
call fcn.00402e0b
xor edi, edi
push dword [esp + 0x1c]
call fcn.00432294
pop ecx
mov edx, ebx
lea ecx, [esp + 0xe4]
call fcn.0041e08e
push eax
mov edx, 0x498200
mov byte [esp + 0x614], 0xf
lea ecx, [esp + 0xa0]
call fcn.0040ba2a
mov byte [esp + 0x614], 0x10
lea ecx, [esp + 0x70]
mov edx, eax
mov dword [esp], 0x498098
call fcn.0040b97e
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0x61c], 0x11
call fcn.0040442a
push edi
push 1
lea ecx, [esp + 0x74]
call fcn.00402e4f
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.00402e4f
push 0
push 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x618], 0
call fcn.00402e4f
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [edi + 0x70c]
call fcn.00420d19
push 0
push 1
lea ecx, [esp + 0x74]
call fcn.00402e4f
lea eax, [esp + 0x1a4]
mov ecx, edi
push eax
call fcn.00421552
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x614], 0x12
call fcn.0040a9e7
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x610], 0x14
call fcn.00403a08
mov esi, dword [esp + 0x84]
cmp esi, dword [esp + 0x88]
je 0x40886f
add ebx, 0x48
mov dword [esp + 0x20], ebx
push esi
lea ecx, [esp + 0x3d0]
call fcn.00407ed2
mov edx, ebx
mov byte [esp + 0x610], 0x15
lea ecx, [esp + 0x6c]
call fcn.0042741d
mov edx, eax
lea ecx, [esp + 0x3d8]
call fcn.0040319e
push 0
push 1
lea ecx, [esp + 0x74]
mov bl, al
call fcn.00402e0b
test bl, bl
jne 0x40860f
lea ecx, [esp + 0x3cc]
mov byte [esp + 0x610], 0x14
call fcn.00404fcc
mov ebx, dword [esp + 0x20]
add esi, 0x114
cmp esi, dword [esp + 0x88]
jne 0x4085a2
jmp 0x40886f
lea ecx, [esp + 0x1fc]
call fcn.00408cd3
push 0xffffffffffffffff
xor ebx, ebx
mov byte [esp + 0x614], 0x16
push ebx
lea eax, [esp + 0x3e0]
push eax
lea ecx, [esp + 0x238]
call fcn.00402d27
lea eax, [esp + 0x1a4]
mov ecx, edi
push eax
call fcn.0042151b
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x610], 0x17
cmp ecx, eax
je 0x408667
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402d27
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x610], 0x16
call fcn.00406510
lea ecx, [esp + 0x6c]
call fcn.00425049
lea ecx, [esp + 0x214]
mov byte [esp + 0x610], 0x18
cmp ecx, eax
je 0x4086a0
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402d27
push ebx
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x618], 0x16
call fcn.00402e0b
mov esi, 0x497fcc
push esi
call fcn.004028bd
pop ecx
push eax
push esi
lea ecx, [esp + 0x264]
call fcn.00402e95
xor edx, edx
lea ecx, [esp + 0x6c]
call fcn.0040531c
push eax
lea ecx, [esp + 0x248]
call fcn.00403f33
push ebx
push 1
lea ecx, [esp + 0x74]
call fcn.00402e0b
mov esi, dword [esp + 0x4d4]
mov edi, dword [esp + 0x4d8]
cmp esi, edi
je 0x408846
mov ebx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x370]
call fcn.00408d5a
xor ecx, ecx
push 0xf
pop eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x13c], ecx
mov byte [esp + 0x12c], cl
mov dword [esp + 0x158], eax
mov dword [esp + 0x154], ecx
mov byte [esp + 0x144], cl
push 0xffffffffffffffff
push ecx
lea eax, [esp + 0x374]
mov byte [esp + 0x618], 0x1a
push eax
lea ecx, [esp + 0x138]
call fcn.00402d27
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x36c]
call fcn.00402bbc
test al, al
je 0x408791
mov edx, 0x27a0
lea ecx, [esp + 0x9c]
call fcn.00427723
or ebx, 1
jmp 0x4087a2
mov edx, 0x27a1
lea ecx, [esp + 0x6c]
call fcn.00427723
or ebx, 2
push eax
lea ecx, [esp + 0x148]
mov dword [esp + 0x18], ebx
call fcn.00403f33
test bl, 2
je 0x4087cc
push 0
and ebx, 0xfffffffd
lea ecx, [esp + 0x70]
push 1
mov dword [esp + 0x1c], ebx
call fcn.00402e0b
mov dword [esp + 0x610], 0x1a
test bl, 1
je 0x4087f3
push 0
and ebx, 0xfffffffe
lea ecx, [esp + 0xa0]
push 1
mov dword [esp + 0x1c], ebx
call fcn.00402e0b
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x278]
call fcn.0040a95e
push 0
push 1
lea ecx, [esp + 0x14c]
call fcn.00402e0b
push 0
push 1
lea ecx, [esp + 0x134]
call fcn.00402e0b
lea ecx, [esp + 0x36c]
mov byte [esp + 0x610], 0x16
call fcn.00405134
add esi, 0x60
cmp esi, edi
jne 0x40870c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1fc]
push eax
call fcn.004096d9
lea ecx, [esp + 0x1fc]
call fcn.00408d13
lea ecx, [esp + 0x3cc]
call fcn.00404fcc
lea ecx, [esp + 0x84]
call fcn.0040439b
mov esi, dword [esp + 0x2c]
push esi
call dword [0x48934c]
push 0
push 3
push 0x111
push dword [esp + 0x34]
call dword [0x489684]
push 0
push 1
lea ecx, [esp + 0xbc]
call fcn.00402e4f
mov ecx, dword [esp + 0x608]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5f0]
xor ecx, esp
call fcn.00460e52
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
push 0x1b7740
push eax
mov dword [ecx], eax
call dword [0x489348]
and dword [esp + 0x20], 0
mov esi, eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [0x489338]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
call fcn.00405497
push eax
lea ecx, [ebx + 0xb8]
call fcn.00403fae
push 0
push 1
lea ecx, [esp + 0x74]
call fcn.00402e4f
cmp esi, 0x102
jne 0x408938
mov eax, dword [ebx + 0xd0]
add eax, 0x1b7740
jmp 0x40893d
call fcn.00461f92
mov dword [ebx + 0xd4], eax
mov ecx, edi
lea eax, [esp + 0x1a4]
push eax
call fcn.00421552
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x614], 0x1c
call fcn.0040a9e7
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x610], 0x1e
call fcn.00403a08
mov esi, dword [esp + 0x84]
cmp esi, dword [esp + 0x88]
je 0x408c8f
add ebx, 0x48
mov dword [esp + 0x28], ebx
push esi
lea ecx, [esp + 0x4e8]
call fcn.00407ed2
mov edx, ebx
mov byte [esp + 0x610], 0x1f
lea ecx, [esp + 0x6c]
call fcn.0042741d
mov edx, eax
lea ecx, [esp + 0x4f0]
call fcn.0040319e
push 0
push 1
lea ecx, [esp + 0x74]
mov bl, al
call fcn.00402e0b
test bl, bl
jne 0x408a0a
lea ecx, [esp + 0x4e4]
mov byte [esp + 0x610], 0x1e
call fcn.00404fcc
mov ebx, dword [esp + 0x28]
add esi, 0x114
cmp esi, dword [esp + 0x88]
jne 0x408999
mov ebx, dword [esp + 0x18]
jmp 0x408c8f
lea ecx, [esp + 0x284]
call fcn.00408cd3
push 0xffffffffffffffff
xor ebx, ebx
mov byte [esp + 0x614], 0x20
push ebx
lea eax, [esp + 0x4f8]
push eax
lea ecx, [esp + 0x2c0]
call fcn.00402d27
lea eax, [esp + 0x1a4]
mov ecx, edi
push eax
call fcn.0042151b
lea ecx, [esp + 0x284]
mov byte [esp + 0x610], 0x21
cmp ecx, eax
je 0x408a62
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402d27
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x610], 0x20
call fcn.00406510
lea ecx, [esp + 0x6c]
call fcn.00425049
lea ecx, [esp + 0x29c]
mov byte [esp + 0x610], 0x22
cmp ecx, eax
je 0x408a9b
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402d27
push ebx
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x618], 0x20
call fcn.00402e0b
mov esi, 0x497fd4
push esi
call fcn.004028bd
pop ecx
push eax
push esi
lea ecx, [esp + 0x2ec]
call fcn.00402e95
mov ebx, dword [esp + 0x18]
mov ecx, 0x3e8
mov eax, dword [ebx + 0xd4]
sub eax, dword [ebx + 0xd0]
cdq
idiv ecx
lea ecx, [esp + 0x6c]
mov edx, eax
call fcn.004053aa
push eax
lea ecx, [esp + 0x2d0]
call fcn.00403f33
push 0
push 1
lea ecx, [esp + 0x74]
call fcn.00402e0b
mov esi, dword [esp + 0x5ec]
mov edi, dword [esp + 0x5f0]
cmp esi, edi
je 0x408c64
mov ebx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x310]
call fcn.00408d5a
xor ecx, ecx
push 0xf
pop eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], ecx
mov byte [esp + 0xfc], cl
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], ecx
mov byte [esp + 0x114], cl
push 0xffffffffffffffff
push ecx
lea eax, [esp + 0x314]
mov byte [esp + 0x618], 0x24
push eax
lea ecx, [esp + 0x108]
call fcn.00402d27
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30c]
call fcn.00402bbc
test al, al
je 0x408ba5
mov edx, 0x27a0
lea ecx, [esp + 0xe4]
call fcn.00427723
or ebx, 4
jmp 0x408bb9
mov edx, 0x27a1
lea ecx, [esp + 0x9c]
call fcn.00427723
or ebx, 8
push eax
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], ebx
call fcn.00403f33
test bl, 8
je 0x408be6
push 0
and ebx, 0xfffffff7
lea ecx, [esp + 0xa0]
push 1
mov dword [esp + 0x1c], ebx
call fcn.00402e0b
mov dword [esp + 0x610], 0x24
test bl, 4
je 0x408c0d
push 0
and ebx, 0xfffffffb
lea ecx, [esp + 0xe8]
push 1
mov dword [esp + 0x1c], ebx
call fcn.00402e0b
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x300]
call fcn.0040a95e
push 0
push 1
lea ecx, [esp + 0x11c]
call fcn.00402e0b
push 0
push 1
lea ecx, [esp + 0x104]
call fcn.00402e0b
lea ecx, [esp + 0x30c]
mov byte [esp + 0x610], 0x20
call fcn.00405134
add esi, 0x60
cmp esi, edi
jne 0x408b20
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x284]
push eax
mov ecx, edi
call fcn.004096d9
lea ecx, [esp + 0x284]
call fcn.00408d13
lea ecx, [esp + 0x4e4]
call fcn.00404fcc
lea ecx, [esp + 0x84]
call fcn.0040439b
mov eax, dword [esp + 0x50]
lea esi, [edi + 0x770]
push esi
mov dword [ebx + 0x78], eax
call dword [0x48934c]
cmp byte [edi + 0x70a], 0
je 0x4088a9
cmp dword [esi], 0
jne 0x4088a9
call fcn.00425065
push 0
call dword [0x48935c]
int3