Function at 0x402bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420454
mov eax, dword fs:[0]
push eax
sub esp, 0x780
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x778], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x790]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x30]
mov dword [esp + 0x30], esi
add esi, 0x28
cmp dword [esi + 4], edi
mov dword [esp + 0x40], esi
jbe 0x402c1a
call fcn.00412b4f
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x402c27
call fcn.00412b4f
cmp ebx, edi
je 0x402c3c
push ebx
mov ebx, dword [esi + 8]
mov eax, edi
call fcn.004058c0
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
push 0xffffffffffffffff
add eax, 0x38
push ebx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
call fcn.00404d90
push 0x11
push str.WindowsGA_OF.dat
lea ecx, [esp + 0xa8]
mov dword [esp + 0x7a0], ebx
call fcn.004052d0
mov eax, dword [esp + 0xa4]
mov esi, 8
cmp dword [esp + 0xb8], esi
mov dword [esp + 0x44], vtable.FileControl.0
jae 0x402cac
lea eax, [esp + 0xa4]
push 1
push 1
push eax
lea ecx, [esp + 0x50]
call fcn.00407410
test al, al
jne 0x402cde
cmp dword [esp + 0xb8], esi
jb 0x402cd7
mov eax, dword [esp + 0xa4]
push eax
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x4038d6
mov dword [esp + 0x34], vtable.MemoryControl.0
mov dword [esp + 0x38], ebx
push 0x2800000
lea ecx, [esp + 0x38]
mov byte [esp + 0x79c], 1
call fcn.0040a6a0
mov edi, eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x402d19
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
push eax
call fcn.00413e90
add esp, 0xc
push 0x2800000
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov esi, dword [esp + 0x48]
jne 0x402d59
push ebx
push ebx
xor eax, eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x402d59
push ebx
lea edx, [esp + 0x34]
push edx
push 0x2800000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402d85
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x402d78
push eax
call fcn.004133d3
add esp, 4
cmp dword [esp + 0xb8], 8
jmp 0x402cc5
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402db2
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x8c]
call fcn.00401af0
mov ebx, 4
xor edi, edi
push 0x6c4
lea ecx, [esp + 0xc4]
push edi
push ecx
mov dword [esp + 0xc8], edi
call fcn.00413e90
mov esi, 0xf
add esp, 0xc
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
push ebx
push str._GA_
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x7a4], bl
call fcn.00404c10
cmp eax, 0xffffffff
je 0x4037f9
push 0xffffffffffffffff
lea ecx, [eax + 4]
lea esi, [esp + 0x18]
lea edx, [esp + 0x88]
call fcn.00404ae0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x7a4], 5
call fcn.00401a10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], 0x10
jb 0x402e7c
mov eax, dword [esp + 0x18]
push eax
call fcn.004127aa
add esp, 4
push 5
push str.__GA_
lea ecx, [esp + 0x8c]
push ecx
call fcn.00404c10
mov edi, eax
cmp edi, 0xffffffff
je 0x40382e
push edi
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x88]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 6
call fcn.00401a10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], 0x10
jb 0x402edf
mov edx, dword [esp + 0x18]
push edx
call fcn.004127aa
add esp, 4
push 0xffffffffffffffff
lea ecx, [edi + 5]
lea esi, [esp + 0x18]
lea edx, [esp + 0x88]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x7a4], 7
call fcn.00401a10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], 0x10
jb 0x402f28
mov eax, dword [esp + 0x18]
push eax
call fcn.004127aa
add esp, 4
push 6
push str._Type_
lea ecx, [esp + 0x70]
push ecx
call fcn.00404c10
cmp eax, 0xffffffff
jne 0x402f8a
mov esi, 0x10
cmp dword [esp + 0x64], esi
jb 0x402f56
mov edx, dword [esp + 0x50]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x80], esi
mov byte [esp + 0x50], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xf
jb 0x402dd0
mov eax, dword [esp + 0x6c]
push eax
call fcn.004127aa
add esp, 4
jmp 0x402dd0
push 0xffffffffffffffff
lea ecx, [eax + 6]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 8
call fcn.00401a10
mov edi, 0x10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], edi
jb 0x402fd1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004127aa
add esp, 4
push 7
push str.__Type_
lea edx, [esp + 0x70]
push edx
call fcn.00404c10
cmp eax, 0xffffffff
jne 0x40302e
cmp dword [esp + 0x64], edi
jb 0x402ffa
mov eax, dword [esp + 0x50]
push eax
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x402dd0
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004127aa
add esp, 4
jmp 0x402dd0
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 9
call fcn.00401a10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], edi
jb 0x40306e
mov edx, dword [esp + 0x18]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x40307c
lea eax, [esp + 0x50]
push eax
call fcn.00412843
add esp, 4
push 0xa
mov dword [esp + 0xc0], eax
push str._MustSend_
lea eax, [esp + 0x70]
push eax
call fcn.00404c10
cmp eax, 0xffffffff
jne 0x4030e9
cmp dword [esp + 0x64], edi
jb 0x4030b5
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x402dd0
mov edx, dword [esp + 0x6c]
push edx
call fcn.004127aa
add esp, 4
jmp 0x402dd0
push 0xffffffffffffffff
lea ecx, [eax + 0xa]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0xa
call fcn.00401a10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], edi
jb 0x40312b
mov eax, dword [esp + 0x18]
push eax
call fcn.004127aa
add esp, 4
push 0xb
push str.__MustSend_
lea ecx, [esp + 0x70]
push ecx
call fcn.00404c10
cmp eax, 0xffffffff
jne 0x403160
cmp dword [esp + 0x64], edi
jb 0x403154
mov edx, dword [esp + 0x50]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x80], edi
jmp 0x402f5d
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0xb
call fcn.00401a10
mov byte [esp + 0x798], bl
cmp dword [esp + 0x2c], edi
jb 0x4031a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x4031ae
lea eax, [esp + 0x50]
push eax
call fcn.00412843
add esp, 4
push 8
test eax, eax
push str._SetTid_
lea eax, [esp + 0x70]
setne dl
push eax
mov byte [esp + 0xcc], dl
call fcn.00404c10
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 8]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0xc
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
push 9
push str.__SetTid_
lea ecx, [esp + 0x70]
push ecx
call fcn.00404c10
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0xd
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x40326f
lea eax, [esp + 0x50]
push eax
call fcn.00412843
add esp, 4
test eax, eax
setne dl
lea eax, [esp + 0x68]
mov byte [esp + 0xc1], dl
push eax
mov edx, str._Tid_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 5]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0xe
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea ecx, [esp + 0x68]
push ecx
mov edx, str.__Tid_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0xf
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x40332c
lea eax, [esp + 0x50]
push eax
push 0x422d94
mov ecx, 0x100
lea edi, [esp + 0xca]
call fcn.00401ee0
add esp, 8
lea edx, [esp + 0x68]
push edx
mov edx, str._SetCid_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 8]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0x10
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea eax, [esp + 0x68]
push eax
mov edx, str.__SetCid_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0x11
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
mov eax, dword [esp + 0x50]
mov edi, 0x10
cmp dword [esp + 0x64], edi
jae 0x4033f3
lea eax, [esp + 0x50]
push eax
call fcn.00412843
add esp, 4
test eax, eax
lea edx, [esp + 0x68]
setne cl
push edx
mov edx, str._Cid_
mov byte [esp + 0x1c6], cl
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 5]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0x12
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea eax, [esp + 0x68]
push eax
mov edx, str.__Cid_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0x13
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x4034b0
lea eax, [esp + 0x50]
push eax
push 0x422d94
mov ecx, 0x100
lea edi, [esp + 0x1cb]
call fcn.00401ee0
add esp, 8
lea ecx, [esp + 0x68]
push ecx
mov edx, str._Category_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 0xa]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0x14
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea edx, [esp + 0x68]
push edx
mov edx, str.__Category_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0x15
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x403573
lea eax, [esp + 0x50]
push eax
push 0x422d94
mov ecx, 0x96
lea edi, [esp + 0x2cb]
call fcn.00401ee0
add esp, 8
lea eax, [esp + 0x68]
push eax
mov edx, str._Action_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 8]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0x16
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea ecx, [esp + 0x68]
push ecx
mov edx, str.__Action_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0x17
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x403636
lea eax, [esp + 0x50]
push eax
push 0x422d94
mov ecx, 0x1f4
lea edi, [esp + 0x361]
call fcn.00401ee0
add esp, 8
lea edx, [esp + 0x68]
push edx
mov edx, str._Label_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 7]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0x18
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea eax, [esp + 0x68]
push eax
mov edx, str.__Label_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0x19
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x4036f9
lea eax, [esp + 0x50]
push eax
push 0x422d94
mov ecx, 0x1f4
lea edi, [esp + 0x555]
call fcn.00401ee0
add esp, 8
lea ecx, [esp + 0x68]
push ecx
mov edx, str._Value_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push 0xffffffffffffffff
lea ecx, [eax + 7]
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x7a4], 0x1a
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
lea edx, [esp + 0x68]
push edx
mov edx, str.__Value_
call fcn.00404ab0
cmp eax, 0xffffffff
je 0x4037e2
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x6c]
call fcn.00404ae0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7a4], 0x1b
call fcn.00401a10
mov ecx, esi
mov byte [esp + 0x798], bl
call fcn.00401920
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x4037b8
lea eax, [esp + 0x50]
push eax
push 0x422d94
mov ecx, 0x40
lea edi, [esp + 0x749]
call fcn.00401ee0
mov esi, dword [esp + 0x48]
add esp, 8
lea eax, [esp + 0xbc]
call fcn.00404b40
lea ecx, [esp + 0x4c]
call fcn.00401920
lea ecx, [esp + 0x68]
call fcn.00401920
jmp 0x402dd0
mov ebx, 0x10
cmp dword [esp + 0x64], ebx
jb 0x403811
mov eax, dword [esp + 0x50]
push eax
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x80], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
jb 0x403871
mov ecx, dword [esp + 0x6c]
push ecx
jmp 0x403869
mov esi, 0x10
cmp dword [esp + 0x64], esi
jb 0x403846
mov edx, dword [esp + 0x50]
push edx
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x403871
mov eax, dword [esp + 0x6c]
push eax
call fcn.004127aa
add esp, 4
cmp dword [esp + 0x9c], 0x10
jb 0x40388b
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004127aa
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
je 0x4038ba
push eax
call fcn.004133d3
add esp, 4
cmp dword [esp + 0xb8], 8
jb 0x4038d4
mov edx, dword [esp + 0xa4]
push edx
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x790]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x778]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret