Function at 0x472820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x160
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [ecx + 0x690]
push ebx
push ebp
xor ebp, ebp
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3f
mov ebx, eax
or eax, 0xffffffff
lea ecx, [esp + 0x25]
push ebp
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov byte [esp + 0x2c], 0
call fcn.004f67e0
add esp, 0xc
cmp ebx, ebp
jne 0x472897
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.004f6592
add esp, 0x160
ret
mov eax, ebx
imul eax, eax, 0x10d
push esi
lea esi, [eax + 0x10000]
push edi
push esi
call fcn.00496dbd
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebp
je 0x472b3b
push esi
push ebp
push edi
call fcn.004f67e0
mov esi, edi
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x47294c
mov edx, dword [esp + 0x18]
add edx, 0x670
mov dword [esp + 0x18], edx
nop
mov ecx, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x6c]
push eax
push 0
push edi
mov byte [esp + 0x78], 0
call fcn.004a284b
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472902
sub eax, edx
mov ebx, eax
je 0x472945
mov ecx, dword [esp + 0x18]
push edi
call fcn.004addc1
mov dword [esi], eax
lea eax, [esp + 0x68]
mov ecx, eax
mov dword [esi + 4], ebx
sub esi, ecx
lea edx, [esi + 8]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x472930
mov edx, dword [esp + 0x10]
lea ebp, [ebx + ebp + 9]
lea esi, [edx + ebp]
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4728e0
lea edi, [ebp + 0x10000]
push edi
call fcn.00496dbd
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x472975
mov eax, dword [esp + 0x10]
push eax
call fcn.00496dc8
add esp, 4
xor eax, eax
jmp 0x472b6f
push edi
push 0
push ebx
call fcn.004f67e0
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
lea edx, [esp + 0x28]
lea eax, [ebx + 0x20]
push edx
push eax
call fcn.004814f0
push edi
call fcn.00496dbd
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4729bb
mov eax, dword [esp + 0x10]
push eax
call fcn.00496dc8
push ebx
call fcn.00496dc8
add esp, 8
xor eax, eax
jmp 0x472b6f
push edi
push 0
push esi
call fcn.004f67e0
mov ecx, dword [esp + 0x20]
push ecx
lea eax, [ebx + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push esi
call fcn.00481120
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, ebp
mov edi, esi
cmp ebp, 4
jb 0x4729fc
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x472a20
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x4729e8
test eax, eax
je 0x472a40
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x472a20
cmp eax, 1
jbe 0x472a40
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x472a20
cmp eax, 2
jbe 0x472a40
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
je 0x472a40
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00496dc8
push ebx
call fcn.00496dc8
push esi
call fcn.00496dc8
add esp, 0xc
xor eax, eax
jmp 0x472b6f
push esi
call fcn.00496dc8
mov edx, dword [esp + 0x14]
push edx
call fcn.00496dc8
mov eax, dword [esp + 0x1c]
push eax
lea eax, [ebx + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0044c2a0
add esp, 0x14
push 0x104
lea edx, [esp + 0x6c]
push edx
mov ecx, 8
lea esi, [esp + 0x30]
mov edi, ebx
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x68]
push 0x5c
push eax
call fcn.004f6860
add esp, 8
test eax, eax
jne 0x472acd
mov ecx, dword [str.usermonfile.dat]
mov edx, dword [0x5468cc]
mov eax, dword [0x5468d0]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x5468d4]
mov dword [esp + 0x6c], edx
mov dx, word [0x5468d8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov word [esp + 0x78], dx
jmp 0x472b0b
mov byte [eax], 0
lea eax, [esp + 0x68]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x472ad5
mov ecx, dword [str.usermonfile.dat]
mov edx, dword [0x5468cc]
mov dword [eax], ecx
mov ecx, dword [0x5468d0]
mov dword [eax + 4], edx
mov edx, dword [0x5468d4]
mov dword [eax + 8], ecx
mov cx, word [0x5468d8]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x472b3f
push ebx
call fcn.00496dc8
add esp, 4
xor eax, eax
jmp 0x472b6f
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x24]
push eax
add ecx, 0x20
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov edi, eax
call fcn.00496dc8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
setne al
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6592
add esp, 0x160
ret