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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40b061
push eax
mov dword fs:[0], esp
sub esp, 0x270
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
xor edi, edi
test eax, eax
jne 0x404b10
mov esi, 1
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404781
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404781
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x40479f
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404798
mov dword [ebp], eax
jmp 0x40479f
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x40476a
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x4047ca
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4047ca
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x4047e8
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4047e1
mov dword [ebp], eax
jmp 0x4047e8
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x4047b3
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404813
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404813
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x404831
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x40482a
mov dword [ebp], eax
jmp 0x404831
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x4047fc
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x40485c
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x40485c
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x40487a
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404873
mov dword [ebp], eax
jmp 0x40487a
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x404845
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x4048a5
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4048a5
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x4048c3
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4048bc
mov dword [ebp], eax
jmp 0x4048c3
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x40488e
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x4048ee
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4048ee
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x40490c
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404905
mov dword [ebp], eax
jmp 0x40490c
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x4048d7
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404937
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404937
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x404955
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x40494e
mov dword [ebp], eax
jmp 0x404955
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x404920
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404980
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404980
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x40499e
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404997
mov dword [ebp], eax
jmp 0x40499e
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x404969
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x4049c9
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4049c9
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x4049e7
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x4049e0
mov dword [ebp], eax
jmp 0x4049e7
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x4049b2
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404a12
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404a12
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x404a30
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404a29
mov dword [ebp], eax
jmp 0x404a30
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x4049fb
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404a5b
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404a5b
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x404a79
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404a72
mov dword [ebp], eax
jmp 0x404a79
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x404a44
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404aa4
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404aa4
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x404ac2
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404abb
mov dword [ebp], eax
jmp 0x404ac2
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x404a8d
mov esi, 1
xor eax, eax
mov dword [esp + 0x18], edi
lea ebp, [esp + 0x18]
cmp eax, edi
je 0x404aed
lea edx, [esp + 0x10]
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404aed
mov eax, dword [esp + eax*4 + 0x14]
jmp 0x404b0b
inc esi
add ebp, 4
lea edx, [esp + 0x10]
inc eax
dec edx
mov bl, byte [edx + esi]
cmp bl, byte [edx + eax]
je 0x404b04
mov dword [ebp], eax
jmp 0x404b0b
mov edx, dword [esp + eax*4 + 0x14]
mov dword [ebp], edx
cmp esi, 0xa
jl 0x404ad6
mov esi, dword [esp + 0x290]
push esi
call fcn.00404d90
cmp eax, edi
jne 0x404b28
xor eax, eax
jmp 0x404d74
lea ebp, [eax - 4]
push ebp
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
mov dword [esp + 0x28], edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404b68
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x404d74
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x20]
push 0
push eax
push ebp
push ebx
push esi
call edi
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x30]
push 4
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, str.24898A13_5593_41b9_A190_03B0CE784949
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x180]
call fcn.004051c0
lea edx, [esp + 0x28]
xor esi, esi
push 4
push edx
lea ecx, [esp + 0x180]
mov dword [esp + 0x290], esi
call fcn.00405a40
lea eax, [esp + 0x28]
push 4
push eax
lea ecx, [esp + 0x78]
call fcn.004051c0
push ebp
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x290], 1
call fcn.00405a40
lea ecx, [esp + 0x70]
mov byte [esp + 0x288], 0
call fcn.00405650
lea ecx, [esp + 0x178]
mov dword [esp + 0x288], 0xffffffff
call fcn.00405650
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], 0x500000
call fcn.00405f20
lea ecx, [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
push edx
push ebp
mov dword [esp + 0x294], 2
push ebx
lea ecx, [esp + 0x30]
call fcn.00405f60
test eax, eax
jne 0x404c9c
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x288], 0xffffffff
call fcn.00405f50
xor eax, eax
jmp 0x404d74
lea ecx, [esp + 0x20]
mov dword [esp + 0x288], 0xffffffff
call fcn.00405f50
push ebx
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x298]
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0xc
inc eax
mov esi, str.ExeBinder.exe
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x404cf7
test cl, cl
je 0x404cf3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x404cf7
add eax, 2
add esi, 2
test cl, cl
jne 0x404ccf
xor eax, eax
jmp 0x404cfc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404d12
mov eax, dword [esp + 0x10]
lea esi, [eax + 0x108]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404d43
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x404d74
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x27c
ret 8