Function at 0x4069a0
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 0x408315
mov ebx, dword [esp + 0x12c]
cmp ebx, edx
je 0x408315
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 0x406a1e
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 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
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 0x406a7b
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.00406930
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.00406840
add esp, 0xc
push 0
push 0
push 0
push ebp
call esi
cmp eax, 0xffffffff
jne 0x406ab9
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 0x406ae5
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.00406940
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 0x406b25
test al, al
je 0x406b21
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x406b25
add edi, 2
add esi, 2
test al, al
jne 0x406afd
xor eax, eax
jmp 0x406b2a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b45
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 0x406b70
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 0x406ba2
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.00406940
add esp, 8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x18]
je 0x406bd7
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 0x406bff
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 0x406c2b
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 0x406c51
test eax, eax
je 0x406c51
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 0x406c79
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 0x406ca8
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.00406940
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 0x406d11
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.00406940
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 0x406d7a
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.00406940
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 0x406dcb
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.00406940
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 0x406e16
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.00406940
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 0x406e60
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.00406940
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 0x406ea5
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.00406940
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 0x406eea
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.00406940
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 0x406f34
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.00406940
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 0x406f79
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.00406940
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 0x406fc4
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.00406940
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 0x40700e
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.00406940
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 0x407059
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.00406940
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 0x4070a4
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.00406940
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 0x4070ee
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.00406940
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 0x407139
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.00406940
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 0x407184
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.00406940
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 0x4071ce
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.00406940
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 0x407219
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.00406940
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 0x407264
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.00406940
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 0x4072ae
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.00406940
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 0x4072f9
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.00406940
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 0x407344
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.00406940
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 0x40738e
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.00406940
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 0x4073d9
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.00406940
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 0x40741e
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.00406940
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 0x407463
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.00406940
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 0x4074a8
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.00406940
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 0x4074ed
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.00406940
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 0x407546
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 0x407572
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.00406940
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 0x4075b3
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 0x4075df
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.00406940
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 0x40762b
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 0x40765d
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.00406940
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 0x4076b2
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 0x4076de
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.00406940
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 0x40772a
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 0x40775c
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.00406940
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 0x4077a3
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 0x4077cf
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.00406940
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 0x407810
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 0x40783c
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.00406940
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 0x40787d
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 0x4078a9
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.00406940
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 0x4078ea
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 0x407916
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.00406940
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 0x407957
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 0x407983
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.00406940
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 0x4079c4
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 0x4079f0
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.00406940
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 0x407a35
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.00406940
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 0x407a76
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 0x407aa2
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.00406940
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 0x407ae7
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.00406940
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 0x407b28
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 0x407b54
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.00406940
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 0x407b99
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.00406940
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 0x407bda
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 0x407c16
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.00406940
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 0x407c80
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 0x407cb2
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 0x407ce4
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 0x407d10
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 0x407d42
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 0x407d6e
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 0x407da0
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 0x407ddc
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 0x407dee
inc eax
cmp eax, 0x3c
jl 0x407dde
jmp 0x407dfd
lea edx, [esp + 0x20]
push 0x3c
push edx
call fcn.00406940
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 0x407e59
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 0x407e89
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.00406940
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 0x407eeb
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 0x407f1b
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.00406940
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 0x407f7d
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 0x407fad
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.00406940
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 0x40800f
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 0x40803f
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.00406940
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 0x4080a1
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 0x4080d1
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.00406940
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 0x408133
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 0x408163
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.00406940
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 0x4081c5
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 0x4081f7
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.00406940
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 0x408244
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 0x408270
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.00406940
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 0x4082b7
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 0x4082e3
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.00406940
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x348], eax
call fcn.00406920
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