Function at 0x406770
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x114
mov al, byte [0x40c428]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x20], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x128]
mov dword [esp + 0x10], edx
cmp eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
je 0x4080e5
mov ebx, dword [esp + 0x12c]
cmp ebx, edx
je 0x4080e5
push edx
push 0x80
push 3
push edx
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4067ee
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x114
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x25
push ebp
call esi
cmp eax, 0xffffffff
jne 0x406819
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x24]
push 2
push edx
push ebp
call edi
test eax, eax
jne 0x40684b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
push 0x7bb
call fcn.00406700
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.00406610
add esp, 0xc
push 0
push 0
push 0
push ebp
call esi
cmp eax, 0xffffffff
jne 0x406889
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push ebp
call edi
test eax, eax
jne 0x4068b5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0xc
push eax
call fcn.00406710
add esp, 8
mov esi, str.FSVD70CONFIG
lea edi, [esp + 0x20]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x4068f5
test al, al
je 0x4068f1
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x4068f5
add edi, 2
add esi, 2
test al, al
jne 0x4068cd
xor eax, eax
jmp 0x4068fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406915
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x2b
push ebp
call esi
cmp eax, 0xffffffff
jne 0x406940
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x406972
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x18]
push 4
push edx
call fcn.00406710
add esp, 8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x18]
je 0x4069a7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x114
ret
push 0
push 0
push 0x35b
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4069cf
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x4069fb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov eax, dword [esp + 0x10]
cmp eax, 0x2abe
jbe 0x406a21
test eax, eax
je 0x406a21
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x114
ret
push 0
push 0
push 0x9a
push ebp
call esi
cmp eax, 0xffffffff
jne 0x406a49
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x28]
push 0x101
push eax
push ebp
call edi
test eax, eax
jne 0x406a78
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x20]
push 0x101
push ecx
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x101
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ae1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x101
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 4
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406b4a
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
and ecx, 0xff
push 0
push edx
push 4
push eax
push ebp
mov dword [ebx + 0x214], ecx
call esi
test eax, eax
jne 0x406b9b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
and edx, 0xff
push ecx
push ebp
mov dword [ebx + 0x218], edx
call esi
test eax, eax
jne 0x406be6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xff
push edx
push ebp
mov dword [ebx + 0x21c], eax
call esi
test eax, eax
jne 0x406c30
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
push eax
push ebp
mov dword [ebx + 0x2e0], ecx
call esi
test eax, eax
jne 0x406c75
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
push ecx
push ebp
mov dword [ebx + 0x2e4], edx
call esi
test eax, eax
jne 0x406cba
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xff
push edx
push ebp
mov dword [ebx + 0x2ec], eax
call esi
test eax, eax
jne 0x406d04
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
push eax
push ebp
mov dword [ebx + 0x2f0], ecx
call esi
test eax, eax
jne 0x406d49
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
and edx, 0xff
push ecx
push ebp
mov dword [ebx + 0x2f4], edx
call esi
test eax, eax
jne 0x406d94
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xff
push edx
push ebp
mov dword [ebx + 0x2f8], eax
call esi
test eax, eax
jne 0x406dde
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
and ecx, 0xff
push eax
push ebp
mov dword [ebx + 0x2fc], ecx
call esi
test eax, eax
jne 0x406e29
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
and edx, 0xff
push ecx
push ebp
mov dword [ebx + 0x300], edx
call esi
test eax, eax
jne 0x406e74
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xff
push edx
push ebp
mov dword [ebx + 0x304], eax
call esi
test eax, eax
jne 0x406ebe
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
and ecx, 0xff
push eax
push ebp
mov dword [ebx + 0x318], ecx
call esi
test eax, eax
jne 0x406f09
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
and edx, 0xff
push ecx
push ebp
mov dword [ebx + 0x31c], edx
call esi
test eax, eax
jne 0x406f54
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xff
push edx
push ebp
mov dword [ebx + 0x308], eax
call esi
test eax, eax
jne 0x406f9e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
and ecx, 0xff
push eax
push ebp
mov dword [ebx + 0x30c], ecx
call esi
test eax, eax
jne 0x406fe9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
and edx, 0xff
push ecx
push ebp
mov dword [ebx + 0x310], edx
call esi
test eax, eax
jne 0x407034
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xff
push edx
push ebp
mov dword [ebx + 0x314], eax
call esi
test eax, eax
jne 0x40707e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
and ecx, 0xffff
push eax
push ebp
mov dword [ebx + 0x328], ecx
call esi
test eax, eax
jne 0x4070c9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
and edx, 0xffff
push ecx
push ebp
mov dword [ebx + 0x32c], edx
call esi
test eax, eax
jne 0x407114
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
and eax, 0xffff
push edx
push ebp
mov dword [ebx + 0x330], eax
call esi
test eax, eax
jne 0x40715e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
and ecx, 0xffff
push eax
push ebp
mov dword [ebx + 0x334], ecx
call esi
test eax, eax
jne 0x4071a9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
push ecx
push ebp
mov dword [ebx + 0x338], edx
call esi
test eax, eax
jne 0x4071ee
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
push edx
push ebp
mov dword [ebx + 0x33c], eax
call esi
test eax, eax
jne 0x407233
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
push eax
push ebp
mov dword [ebx + 0x340], ecx
call esi
test eax, eax
jne 0x407278
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
push ecx
push ebp
mov dword [ebx + 0x344], edx
call esi
test eax, eax
jne 0x4072bd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 8
mov dword [ebx + 0x2e8], eax
xor eax, eax
push eax
push eax
push 0x439
push ebp
mov dword [ebx + 0x476], eax
mov dword [ebx + 0x47a], eax
mov dword [ebx + 0x47e], eax
call edi
cmp eax, 0xffffffff
jne 0x407316
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call esi
test eax, eax
jne 0x407342
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x472], ecx
push 0
push 0
push 0x3f9
push ebp
call edi
cmp eax, 0xffffffff
jne 0x407383
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x28]
push 0x40
push eax
push ebp
call esi
test eax, eax
jne 0x4073af
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x20]
push 0x40
push ecx
call fcn.00406710
add esp, 8
lea edi, [ebx + 0x432]
mov ecx, 0x10
lea esi, [esp + 0x20]
push 0
push 0
push 0x3ed
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4073fb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x28]
push 0xc
push eax
push ebp
call esi
test eax, eax
jne 0x40742d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x20]
push 0xc
push ecx
call fcn.00406710
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [ebx + 0x426]
add esp, 8
mov dword [edx], eax
mov eax, dword [esp + 0x28]
push 0
push 0
mov dword [edx + 4], ecx
push 0x39d
push ebp
mov dword [edx + 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407482
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x50
push edx
push ebp
call esi
test eax, eax
jne 0x4074ae
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x50
push eax
call fcn.00406710
add esp, 8
lea edi, [ebx + 0x3d6]
mov ecx, 0x14
lea esi, [esp + 0x20]
push 0
push 0
push 0x399
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4074fa
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call edi
test eax, eax
jne 0x40752c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 8
mov dword [ebx + 0x3d2], ecx
push 0
push 0
push 0x395
push ebp
call esi
cmp eax, 0xffffffff
jne 0x407573
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ebp
call edi
test eax, eax
jne 0x40759f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3ce], edx
push 0
push 0
push 0x391
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4075e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x40760c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3ca], eax
push 0
push 0
push 0x38d
push ebp
call esi
cmp eax, 0xffffffff
jne 0x40764d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call edi
test eax, eax
jne 0x407679
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3c6], ecx
push 0
push 0
push 0x389
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4076ba
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ebp
call edi
test eax, eax
jne 0x4076e6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3c2], edx
push 0
push 0
push 0x385
push ebp
call esi
cmp eax, 0xffffffff
jne 0x407727
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x407753
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3be], eax
push 0
push 0
push 0x37d
push ebp
call esi
cmp eax, 0xffffffff
jne 0x407794
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call edi
test eax, eax
jne 0x4077c0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push edx
push 4
push eax
push ebp
mov dword [ebx + 0x3b6], ecx
call edi
test eax, eax
jne 0x407805
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3ba], edx
push 0
push 0
push 0x375
push ebp
call esi
cmp eax, 0xffffffff
jne 0x407846
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x407872
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push ecx
push 4
push edx
push ebp
mov dword [ebx + 0x3ae], eax
call edi
test eax, eax
jne 0x4078b7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3b2], ecx
push 0
push 0
push 0x36d
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4078f8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ebp
call edi
test eax, eax
jne 0x407924
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push eax
push 4
push ecx
push ebp
mov dword [ebx + 0x3a6], edx
call edi
test eax, eax
jne 0x407969
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x3aa], eax
push 0
push 0
push 0x35f
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4079aa
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push 0xe
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4079e6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0xe
push eax
call fcn.00406710
lea eax, [ebx + 0x398]
xor ecx, ecx
mov edx, eax
add esp, 8
mov dword [edx], ecx
push 0
push 0
push 0x357
mov dword [edx + 4], ecx
push ebp
mov dword [edx + 8], ecx
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov dx, word [esp + 0x3c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
call esi
cmp eax, 0xffffffff
jne 0x407a50
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x407a82
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x311
push ebp
mov dword [ebx + 0x394], edx
call esi
cmp eax, 0xffffffff
jne 0x407ab4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x407ae0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x316
push ebp
mov dword [ebx + 0x350], edx
call esi
cmp eax, 0xffffffff
jne 0x407b12
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x407b3e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x31a
push ebp
mov dword [ebx + 0x354], edx
call esi
cmp eax, 0xffffffff
jne 0x407b70
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push 0x3c
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407bac
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
xor eax, eax
mov cl, byte [esp + eax + 0x20]
test cl, cl
jne 0x407bbe
inc eax
cmp eax, 0x3c
jl 0x407bae
jmp 0x407bcd
lea edx, [esp + 0x20]
push 0x3c
push edx
call fcn.00406710
add esp, 8
lea edx, [ebx + 0x358]
mov ecx, 0xf
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x58f
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407c29
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x20
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407c59
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x220]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x519
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407cbb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x20
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407ceb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x240]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x56a
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407d4d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x20
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407d7d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x260]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x4ea
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407ddf
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x20
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407e0f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x280]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x4b5
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407e71
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x20
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407ea1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x2a0]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x485
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407f03
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x20
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407f33
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.00406710
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x2c0]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x5eb
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407f95
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call edi
test eax, eax
jne 0x407fc7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00406710
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 8
and ecx, 0xffff
mov dword [ebx + 0x320], ecx
push 0
push 0
push 0x633
push ebp
call esi
cmp eax, 0xffffffff
jne 0x408014
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x18]
push 4
push eax
push ebp
call edi
test eax, eax
jne 0x408040
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00406710
mov edx, dword [esp + 0x18]
add esp, 8
and edx, 0xffff
push 0
push 0
push 0x647
push ebp
mov dword [ebx + 0x324], edx
call esi
cmp eax, 0xffffffff
jne 0x408087
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push ebp
call edi
test eax, eax
jne 0x4080b3
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x114
ret
lea edx, [esp + 0x10]
push 4
push edx
call fcn.00406710
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x348], eax
call fcn.004066f0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x114
ret