Function at 0x407738
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403af4
mov eax, dword [ebp - 8]
call fcn.00403af4
lea edi, [ebp - 0x14]
xor eax, eax
push ebp
push 0x4080a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x40806b
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 0xa], 0
push 0x80
mov eax, dword [ebp - 4]
call fcn.00403b04
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x186a0
lea edx, [ebp - 0x10]
mov ecx, 0x2faf080
mov eax, dword [ebp - 4]
call fcn.004074f4
mov dword [edi], eax
cmp dword [edi], 0
jne 0x4077c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
call fcn.00407244
test al, al
jne 0x4077e9
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, edi
call fcn.00402884
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x164]
mov edx, 0x10c
call fcn.004049ac
push 0x4080b8
lea eax, [ebp - 0x164]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080c8
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080d8
lea eax, [ebp - 0x155]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080e4
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080e4
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080f0
lea eax, [ebp - 0xd4]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080fc
lea eax, [ebp - 0x149]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408110
lea eax, [ebp - 0xf8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080e4
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40811c
lea eax, [ebp - 0xa9]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408128
lea eax, [ebp - 0xb3]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408134
lea eax, [ebp - 0xde]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408140
lea eax, [ebp - 0xed]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408150
lea eax, [ebp - 0xbe]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40815c
lea eax, [ebp - 0x93]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4080c8
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408168
lea eax, [ebp - 0x9f]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408174
lea eax, [ebp - 0x71]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408188
lea eax, [ebp - 0x88]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x408194
lea eax, [ebp - 0x134]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4081a4
lea eax, [ebp - 0x7b]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4081b0
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_lstrcpyA
mov edx, 0x4081b8
lea eax, [ebp - 0x168]
call fcn.00402a58
lea eax, [ebp - 0x16c]
mov dl, byte [0x40a192]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x168]
mov cl, 2
call fcn.00402a28
lea edx, [ebp - 0x168]
lea eax, [ebp - 0x170]
call fcn.00402a58
lea eax, [ebp - 0x16c]
mov dl, byte [0x40a188]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
mov cl, 3
call fcn.00402a28
lea edx, [ebp - 0x170]
lea eax, [ebp - 0x178]
call fcn.00402a58
lea eax, [ebp - 0x16c]
mov dl, byte [0x40a193]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x178]
mov cl, 4
call fcn.00402a28
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x180]
call fcn.00402a58
lea eax, [ebp - 0x16c]
mov dl, byte [0x40a1a1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x180]
mov cl, 5
call fcn.00402a28
lea edx, [ebp - 0x180]
lea eax, [ebp - 0x188]
call fcn.00402a58
lea eax, [ebp - 0x16c]
mov dl, byte [0x40a1a0]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x188]
mov cl, 6
call fcn.00402a28
lea edx, [ebp - 0x188]
lea eax, [ebp - 0x194]
call fcn.00402a58
mov edx, 0x4081bc
lea eax, [ebp - 0x194]
mov cl, 0xa
call fcn.00402a28
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x34]
call fcn.004038e0
mov eax, dword [ebp - 0x34]
call fcn.00403b04
push eax
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_lstrcpyA
mov byte [ebp - 0x5b], 0x22
mov byte [ebp - 0x5a], 0x5c
mov byte [ebp - 0x59], 0x3a
mov eax, dword [ebp - 0x10]
add eax, 0x7d0
add eax, 0xb
mov dword [ebp - 0x10c], eax
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
call fcn.00403b04
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
call fcn.004071c8
test eax, eax
je 0x407b28
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov eax, dword [edi]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
mov ax, word [esi + 0x16]
and ax, 0xa000
cmp ax, 0xa000
jne 0x407b55
mov byte [ebp - 0x5d], 1
jmp 0x407b59
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x5c], 0
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x100], eax
mov eax, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov eax, esi
call fcn.00407420
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [edi]
add eax, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [edi]
call fcn.00407214
test al, al
jne 0x407bba
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
test ebx, ebx
jne 0x407cb4
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [edi]
add eax, ebx
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00407420
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [edi]
add eax, dword [ebp - 0x28]
mov ecx, 6
mov edx, dword [edi]
call fcn.00407214
test al, al
jne 0x407c2d
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
push 0x4081c4
mov eax, dword [edi]
add eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x407cb1
add ebx, dword [edi]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edi]
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.00407420
mov ebx, eax
test ebx, ebx
jne 0x407c7c
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [edi]
add eax, ebx
mov ecx, 4
mov edx, dword [edi]
call fcn.00407214
test al, al
jne 0x407cc2
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
add ebx, 0x14
mov eax, dword [edi]
add eax, ebx
cmp dword [eax + 0xc], 0
jne 0x407bdf
cmp dword [ebp - 0x2c], 0
jne 0x407ce5
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x10]
add eax, 0x7d0
push eax
mov dx, word [esi + 6]
mov ecx, dword [edi]
mov eax, esi
call fcn.004072ec
mov ebx, eax
test ebx, ebx
jne 0x407d27
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 8]
jbe 0x407d6f
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebx + 0x10]
dec edx
add edx, dword [ebx + 0x14]
mov ecx, dword [edi]
mov eax, esi
call fcn.004073f0
mov dword [ebx + 8], eax
cmp dword [ebx + 8], 0
jne 0x407d69
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov eax, dword [ebx + 0xc]
sub dword [ebx + 8], eax
mov edx, dword [ebx + 0x14]
add edx, dword [ebx + 0x10]
dec edx
mov ecx, dword [ebp - 0x10]
sub ecx, edx
push ecx
mov eax, dword [ebx + 0x14]
add eax, dword [edi]
add eax, dword [ebx + 0x10]
dec eax
push eax
add eax, 0x7d0
pop edx
pop ecx
call fcn.00404964
add dword [ebx + 0x10], 0x7d0
add dword [ebx + 8], 0x1000
mov ecx, dword [ebx + 8]
add ecx, dword [ebx + 0xc]
cmp ecx, dword [esi + 0x50]
jbe 0x407dcd
mov eax, ecx
xor edx, edx
div dword [esi + 0x38]
test edx, edx
je 0x407dca
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0xc]
xor edx, edx
div dword [esi + 0x38]
inc eax
imul dword [esi + 0x38]
mov dword [esi + 0x50], eax
jmp 0x407dcd
mov dword [esi + 0x50], ecx
or dword [ebx + 0x24], 0xe0000020
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x10]
add eax, dword [edi]
sub eax, 0x7d0
mov ebx, eax
lea edx, [ebp - 0x164]
mov eax, ebx
mov ecx, 0x10c
call fcn.00404988
add ebx, 0x10c
mov eax, dword [ebp - 0x10]
add eax, 0x7d0
push eax
mov edx, ebx
sub edx, dword [edi]
mov ecx, dword [edi]
mov eax, esi
call fcn.004073f0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x407e37
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov ecx, 0x4071c4
mov eax, 0x406d08
sub ecx, eax
push eax
mov eax, ebx
pop edx
call fcn.00404988
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [esi + 0x28]
mov ecx, dword [edi]
mov eax, esi
call fcn.00407420
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0x7d0
push eax
mov ecx, dword [edi]
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.00407394
mov ebx, eax
test ebx, ebx
jne 0x407e97
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
push 0x68
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
dec edx
add eax, edx
sub eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebp - 0x10]
dec edx
add edx, dword [edi]
add edx, 0x7d0
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
call fcn.00407450
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x407ee8
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
or dword [ebx + 0x24], 0xe0000020
mov ebx, dword [edi]
add ebx, eax
lea edx, [ebp - 0x30]
mov eax, ebx
mov ecx, 4
call fcn.00404988
add ebx, 4
mov eax, dword [ebp - 0x10]
push eax
mov edx, ebx
sub edx, dword [edi]
mov ecx, dword [edi]
mov eax, esi
call fcn.004073f0
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 0
jne 0x407f3c
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov ecx, 0x406d04
mov eax, 0x406ca0
sub ecx, eax
mov edx, eax
mov eax, ebx
call fcn.00404988
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.00404a64
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f82
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov ebx, eax
mov edx, dword [ebp - 0x10]
add edx, ebx
add edx, 0xb
add edx, 0x7d0
mov eax, edi
call fcn.00402884
lea edx, [ebp - 0x118]
mov eax, dword [edi]
add eax, dword [ebp - 0x10]
add eax, 0x7d0
mov ecx, 0xb
call fcn.00404988
mov edx, dword [edi]
add edx, dword [ebp - 0x10]
add edx, 0xb
add edx, 0x7d0
mov ecx, ebx
mov eax, esi
call fcn.00405ab8
xor edx, edx
cmp edx, 0xffffffff
jne 0x408003
cmp eax, 0xffffffff
jne 0x408003
push esi
call sub.kernel32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
add edx, ebx
add edx, 0xb
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
mov al, byte [ebp - 9]
push eax
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
add edx, ebx
add edx, 0xb
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.00407684
test al, al
jne 0x408042
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
add edx, ebx
add edx, 0xb
mov eax, dword [edi]
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
push esi
call sub.kernel32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
add edx, ebx
add edx, 0xb
mov eax, dword [edi]
call fcn.00402864
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40807d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080ac
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403788
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403788
ret