Function at 0x4672f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp], ebx
jne 0x467631
lea edi, [ebp + 0x44]
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x254], ebx
jne 0x467339
push 0x1800
call fcn.00643b70
add esp, 4
cmp eax, ebx
mov dword [ebp + 0x254], eax
jne 0x467339
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
lea edi, [ebp + 0x44]
mov dword [esp + 0x10], ebx
lea esi, [ebp + 0x24c]
mov dword [esp + 0x14], edi
jmp 0x467350
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x46736b
push 0x1194000
call fcn.00643b70
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x46732f
mov eax, dword [esp + 0x10]
push eax
call fcn.00476a10
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
push ecx
call fcn.00476a10
mov edx, dword [0x73a890]
add esp, 4
push eax
push edx
push 0x6a07d8
push edi
call dword [fcn.0065f1cc]
push 0x40
push 0x6a0008
push edi
call dword [fcn.0065f1e8]
add esp, 0x20
mov dword [esi], eax
test eax, eax
jne 0x4673c4
push 0x40
push 0x6a07d4
push edi
call dword [fcn.0065f1e8]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esi]
test eax, eax
je 0x46732f
push eax
call fcn.00476080
add esp, 4
cmp eax, 0x1194c00
mov dword [esp + 0x18], eax
jbe 0x46755a
cdq
mov ecx, 0xc00
idiv ecx
test edx, edx
jne 0x46755a
push edx
push edx
mov edx, dword [esi]
push edx
call dword [fcn.0065f1d4]
mov eax, dword [esi]
mov edi, dword [ebp + 0x254]
mov ecx, ebx
push eax
push 1
add ecx, edi
mov edi, dword [fcn.0065f1bc]
push 0xc00
push ecx
call edi
mov edx, dword [ebp + 0x254]
add esp, 0x1c
mov eax, dword [ebx + edx + 4]
lea ecx, [ebx + edx]
cmp eax, 0x1770
jne 0x4674bd
cmp dword [ecx], 0x1770
jge 0x4674bd
mov eax, 0x2aaaaaab
imul dword [esp + 0x18]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ecx + 8]
cmp eax, edx
jne 0x4674bd
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push ecx
push 1
push 0x1194000
push edx
call edi
mov eax, dword [ebp + 0x254]
xor edi, edi
add esp, 0x10
mov dword [esp + 0x18], edi
cmp dword [ebx + eax], edi
jle 0x4675dd
mov ecx, dword [esi + 0xc]
add ecx, edi
push ecx
call dword [fcn.0065f1e0]
mov edx, dword [esi + 0xc]
add esp, 4
mov dword [edx + edi + 0xbfc], eax
mov ecx, dword [ebp + 0x254]
mov eax, dword [esp + 0x18]
add edi, 0xc00
mov edx, dword [ebx + ecx]
inc eax
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x467483
jmp 0x4675dd
mov edx, dword [esi]
push 0
push edx
call dword [0x65f194]
add esp, 4
push eax
call dword [0x65f198]
mov edx, dword [ebp + 0x254]
mov edi, ebx
mov ecx, 0x300
xor eax, eax
add edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x254]
mov dword [ebx + eax + 4], 0x1770
mov ecx, dword [ebp + 0x254]
xor eax, eax
mov dword [ebx + ecx + 8], 0x1771
mov edi, dword [esi + 0xc]
mov ecx, 0x465000
push eax
rep stosd dword es:[edi], eax
mov edx, dword [esi]
mov edi, dword [fcn.0065f1d4]
push eax
push edx
call edi
mov eax, dword [esi]
mov edx, dword [ebp + 0x254]
mov ecx, ebx
push eax
push 1
add ecx, edx
push 0xc00
push ecx
call dword [fcn.0065f1b4]
mov edx, dword [esi]
mov eax, dword [esi + 0xc]
push edx
push 1
push 0x1194000
push eax
call dword [fcn.0065f1b4]
mov ecx, dword [esi]
push 2
push 0
push ecx
call edi
add esp, 0x40
jmp 0x4675dd
mov edx, dword [ebp + 0x254]
mov edi, ebx
mov ecx, 0x300
xor eax, eax
add edi, edx
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x254]
mov ecx, 0x465000
mov dword [ebx + edx + 4], 0x1770
mov eax, dword [ebp + 0x254]
mov dword [ebx + eax + 8], 0x1771
mov edi, dword [esi + 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov edi, dword [fcn.0065f1d4]
push eax
push eax
push ecx
call edi
mov edx, dword [esi]
mov ecx, dword [ebp + 0x254]
mov eax, ebx
push edx
push 1
add eax, ecx
push 0xc00
push eax
call dword [fcn.0065f1b4]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push ecx
push 1
push 0x1194000
push edx
call dword [fcn.0065f1b4]
mov eax, dword [esi]
push 2
push 0
push eax
call edi
add esp, 0x38
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add ebx, 0xc00
inc eax
add esi, 4
add edx, 0x104
cmp ebx, 0x1800
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x46734c
xor eax, eax
mov ecx, 0x300
lea edi, [ebp + 0x260]
mov dword [ebp + 0xe60], eax
mov dword [ebp + 0xe64], eax
mov dword [ebp + 0xe68], eax
rep stosd dword es:[edi], eax
mov dword [ebp], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret