Function at 0x402bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x540318
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov esi, ecx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0xd2]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0xd8], ax
call fcn.004804c0
add esp, 0xc
push 0x104
lea edx, [esp + 0xd0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402c76
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd0]
lea edi, [esi + 0x344]
push eax
mov ecx, edi
call fcn.00408820
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [edi + 0x18], 8
jb 0x402cb4
mov eax, dword [edi + 4]
jmp 0x402cb7
lea eax, [edi + 4]
push 0x57d464
push eax
call fcn.00480455
push 0x3e
mov edi, eax
lea eax, [esp + 0x9a]
xor edx, edx
push ebx
push eax
mov word [esp + 0xa0], dx
call fcn.004804c0
add esp, 0x14
push edi
push 0x40
lea ecx, [esp + 0x94]
push 1
push ecx
call fcn.00485f76
push edi
call fcn.0048012f
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
add esp, 0x14
mov dword [esi + 0x338], eax
or eax, ecx
mov dword [esi + 0x33c], ecx
je 0x402d21
mov byte [esi + 0x340], 1
push 0x5ab568
lea edi, [esi + 0x58]
call fcn.004032c0
xor edx, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
mov dword [esp + 0x2e8], ebx
movzx eax, byte [esi + 0x340]
push eax
lea ecx, [esp + 0x74]
call fcn.0040dc30
cmp eax, 1
je 0x402e01
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004022f0
add esp, 8
mov byte [esp + 0x2e8], 1
mov eax, dword [esp + 0x3c]
mov edi, 0x10
cmp dword [esp + 0x50], edi
jae 0x402d95
lea eax, [esp + 0x3c]
push eax
push str.12990103
mov ecx, esi
call fcn.00403a00
mov eax, dword [esp + 0x74]
mov esi, 8
cmp dword [esp + 0x88], esi
jae 0x402db8
lea eax, [esp + 0x74]
push ebx
push 0x57d478
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push ebx
push 0x12
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x50], edi
jb 0x402de4
mov eax, dword [esp + 0x3c]
push eax
call fcn.0044687d
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
jmp 0x40328d
lea ecx, [esp + 0x20]
call fcn.00406190
mov byte [esp + 0x2e8], 2
mov edi, dword [0x5ab7c4]
mov eax, dword [0x5ab7c8]
cmp edi, eax
jbe 0x402e2b
call fcn.00481387
mov eax, dword [0x5ab7c8]
mov esi, dword [0x5ab7b8]
mov ebx, edi
mov edi, eax
cmp dword [0x5ab7c4], eax
jbe 0x402e42
call fcn.00481387
test esi, esi
je 0x402e4e
cmp esi, dword [0x5ab7b8]
je 0x402e53
call fcn.00481387
cmp ebx, edi
je 0x402f61
xor edx, edx
lea eax, [esp + 0xcc]
mov word [esp + 0x58], dx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x5c]
call fcn.00408820
mov byte [esp + 0x2e8], 3
test esi, esi
jne 0x402f56
call fcn.00481387
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x402ec2
call fcn.00481387
push ebx
lea ecx, [esp + 0x3c]
push 0x57d450
push ecx
call fcn.0040ac80
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x2f4], 4
call fcn.004085f0
mov edi, 8
mov byte [esp + 0x2e8], 3
cmp dword [esp + 0x50], edi
jb 0x402f0b
mov edx, dword [esp + 0x3c]
push edx
call fcn.0044687d
add esp, 4
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.00405f30
mov byte [esp + 0x2e8], 2
cmp dword [esp + 0x6c], edi
jb 0x402f34
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0044687d
add esp, 4
test esi, esi
jne 0x402f5d
call fcn.00481387
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x402f49
call fcn.00481387
mov eax, dword [0x5ab7c8]
add ebx, 0x58
jmp 0x402e33
mov eax, dword [esi]
jmp 0x402eb8
mov eax, dword [esi]
jmp 0x402f3f
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x2e8], 5
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x40302d
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x340], bl
je 0x403004
mov ecx, dword [0x5ab7c8]
sub ecx, dword [0x5ab7c4]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402fc5
call fcn.00481387
cmp dword [esi + 0x35c], 8
jb 0x402fd6
mov eax, dword [esi + 0x348]
jmp 0x402fdc
lea eax, [esi + 0x348]
mov edx, dword [0x5ab7c4]
mov ecx, dword [edx + 0x1c]
mov edx, dword [esi + 0x33c]
push 0
push ecx
mov ecx, dword [esi + 0x338]
push edx
push ecx
lea ebx, [esp + 0x20]
call fcn.004140e0
add esp, 0x10
jmp 0x403043
cmp dword [edi + 0x18], 8
jb 0x40300f
mov eax, dword [edi + 4]
jmp 0x403012
lea eax, [edi + 4]
call fcn.0041bfc0
mov edi, eax
test edi, edi
je 0x403047
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, edi
mov dword [esp + 0x10], ebx
jmp 0x403047
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00413da0
mov esi, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 0x314]
lea edi, [esi + 0x50]
push edi
lea eax, [esi + 0x318]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00414160
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x4031ee
push 6
xor eax, eax
push 0x57d484
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edx
mov word [esp + 0x44], ax
call fcn.00408820
push 9
push 0x57d494
lea ecx, [esp + 0x40]
mov byte [esp + 0x2f0], 6
call fcn.00408700
push 0xffffffffffffffff
push 0
push 0x5ab610
lea ecx, [esp + 0x44]
call fcn.004085f0
push 7
push 0x57d4a8
lea ecx, [esp + 0x40]
call fcn.00408700
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.004022f0
add esp, 8
mov byte [esp + 0x2e8], 7
mov eax, dword [esp + 0x58]
mov edi, 0x10
cmp dword [esp + 0x6c], edi
jae 0x4030fa
lea eax, [esp + 0x58]
push eax
push str.12990103
mov ecx, esi
call fcn.00403a00
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x403116
lea eax, [esp + 0x3c]
xor esi, esi
push esi
push 0x57d478
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push esi
push 0x12
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x6c], edi
jb 0x403144
mov eax, dword [esp + 0x58]
push eax
call fcn.0044687d
add esp, 4
mov edi, 8
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
cmp dword [esp + 0x50], edi
jb 0x40316d
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], dx
mov byte [esp + 0x2e8], 2
cmp ebx, esi
je 0x403194
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4031be
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.0040ba70
mov eax, dword [esp + 0x3c]
push eax
call fcn.0044687d
add esp, 0x14
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0044687d
add esp, 4
cmp dword [esp + 0x88], edi
jb 0x40329c
mov edx, dword [esp + 0x74]
push edx
jmp 0x403294
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
fchs
faddp st(1)
fmul qword [0x584238]
call fcn.00480e46
xor esi, esi
mov dword [edi], eax
mov dword [edi + 4], edx
mov byte [esp + 0x2e8], 2
cmp ebx, esi
je 0x403242
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x40326c
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.0040ba70
mov edx, dword [esp + 0x3c]
push edx
call fcn.0044687d
add esp, 0x14
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0044687d
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x40329c
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0044687d
add esp, 4
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0047ff9f
mov esp, ebp
pop ebp
ret