Function at 0x41c7e0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55dadc
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5b5be8]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push esi
push edi
mov eax, dword [0x5b5be8]
xor eax, esp
push eax
lea eax, [esp + 0x890]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
test edi, edi
je 0x41ca07
cmp byte [edi + 0x78], 0
jne 0x41cc65
add edi, 0x50
cmp dword [edi + 0x14], 0x10
jb 0x41c857
mov eax, dword [edi]
jmp 0x41c859
mov eax, edi
push eax
lea esi, [esp + 0x28]
call fcn.0041e710
mov eax, dword [esp + 0x28]
xor edx, edx
div dword [ebx + 0x28]
mov eax, dword [ebx + 0x30]
cmp byte [edx + eax], 0
mov dword [esp + 0x10], edx
je 0x41c8a9
mov esi, edx
shl esi, 4
add esi, dword [ebx + 0x2c]
lea eax, [esp + 0x24]
call fcn.0041ec50
cmp al, 1
jne 0x41c8a9
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
test ecx, 0xfffffffc
jne 0x41c8a6
mov edx, dword [ebx + 0x30]
mov eax, dword [esp + 0x10]
mov byte [eax + edx], 0
dec dword [ebx + 0x3c]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004310e1
add esp, 4
cmp dword [esp + 0x14], 0
je 0x41cc65
cmp dword [edi + 0x14], 0x10
jb 0x41c8cb
mov edx, dword [edi]
jmp 0x41c8cd
mov edx, edi
mov eax, dword [ebx + 4]
push eax
call fcn.0041e320
add esp, 4
cmp dword [edi + 0x14], 0x10
mov esi, eax
mov dword [esp + 0x24], esi
jb 0x41c8e9
mov eax, dword [edi]
jmp 0x41c8eb
mov eax, edi
push eax
mov ecx, ebx
call fcn.0041bce0
mov dword [esp + 0x10], eax
test eax, eax
je 0x41ca07
cmp eax, 0xffffffff
je 0x41ca07
cmp dword [edi + 0x14], 0x10
jb 0x41c912
mov eax, dword [edi]
jmp 0x41c914
mov eax, edi
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x2c]
mov edx, esi
shl edx, 5
mov byte [ecx + 0x6c], 1
add edx, dword [ebx + 0x98]
mov ebx, dword [esp + 0x14]
push edx
call fcn.0041ab40
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41caa7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push 0
push 0
push ebx
push ecx
mov dword [eax + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41ca0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
lea edx, [esp + 0x89]
push 0
push edx
mov esi, eax
mov byte [esp + 0x90], 0
call fcn.00535390
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x8c]
push eax
push 0
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x3ff
lea ecx, [esp + 0x489]
push 0
push ecx
mov byte [esp + 0x490], 0
call fcn.00535390
add esp, 0xc
push esi
lea edx, [esp + 0x88]
push edx
push str._s__d_
mov eax, 0x400
lea edx, [esp + 0x490]
call fcn.00422400
add esp, 0xc
push 0x10
push str.Rappelz
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x41cc67
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c969
cmp dword [edi + 0x14], 0x10
jb 0x41ca3c
mov eax, dword [edi]
jmp 0x41ca3e
mov eax, edi
mov ecx, dword [esp + 0x14]
push esi
push ebx
push ecx
lea ecx, [esp + 0x68]
call fcn.00419ad0
mov dword [esp + 0x898], 0
cmp dword [edi + 0x14], 0x10
jb 0x41ca61
mov edi, dword [edi]
push edi
lea esi, [esp + 0x1c]
call fcn.0041e710
mov ecx, dword [esp + 0x20]
mov edx, esi
push edx
mov byte [esp + 0x89c], 1
mov eax, dword [esp + 0x20]
add ecx, 8
xor edx, edx
div dword [ecx + 4]
push edx
push ecx
lea ecx, [esp + 0x68]
call fcn.0041e920
mov eax, dword [esp + 0x18]
push eax
call fcn.004310e1
add esp, 4
lea esi, [esp + 0x5c]
jmp 0x41cc60
cmp dword [edi + 0x14], 0x10
jb 0x41cab1
mov eax, dword [edi]
jmp 0x41cab3
mov eax, edi
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x14]
push esi
push edx
push ecx
lea ecx, [esp + 0x40]
call fcn.00419ad0
mov dword [esp + 0x898], 2
cmp dword [edi + 0x14], 0x10
jb 0x41cae3
mov edi, dword [edi]
push edi
lea esi, [esp + 0x30]
call fcn.0041e710
mov edx, esi
push edx
mov byte [esp + 0x89c], 3
mov eax, dword [esp + 0x34]
lea ecx, [ebx + 8]
xor edx, edx
div dword [ecx + 4]
push edx
push ecx
lea ecx, [esp + 0x40]
call fcn.0041e920
mov eax, dword [esp + 0x2c]
push eax
call fcn.004310e1
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x9c]
mov ecx, dword [ecx + edx*4]
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, ecx
xor edx, edx
xor edi, edi
add eax, esi
adc edx, edi
mov dword [esp + 0x28], edx
js 0x41cb4c
jg 0x41cbfb
cmp eax, 0xffffffff
ja 0x41cbfb
mov eax, dword [esp + 0x10]
xor ebx, ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41cc08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
lea ecx, [esp + 0x89]
push ebx
push ecx
mov esi, eax
mov byte [esp + 0x90], bl
call fcn.00535390
add esp, 0xc
push ebx
push 0x400
lea edx, [esp + 0x8c]
push edx
push ebx
push esi
push ebx
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x3ff
lea eax, [esp + 0x489]
push ebx
push eax
mov byte [esp + 0x490], bl
call fcn.00535390
add esp, 0xc
push esi
lea ecx, [esp + 0x88]
push ecx
push str._s__d_
mov eax, 0x400
lea edx, [esp + 0x490]
call fcn.00422400
add esp, 0xc
push 0x10
push str.Rappelz
lea edx, [esp + 0x8c]
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esi, [esp + 0x34]
call fcn.004097a0
xor al, al
jmp 0x41cc67
mov edi, dword [esp + 0x18]
cmp esi, ebx
jbe 0x41cc48
mov eax, esi
cmp esi, 0x3200000
jbe 0x41cc1f
mov eax, 0x3200000
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cc8d
mov eax, dword [esp + 0x18]
add edi, eax
cmp esi, eax
jbe 0x41cc48
sub esi, eax
jne 0x41cc10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [esp + 0x20]
call fcn.0041c6a0
lea esi, [esp + 0x34]
call fcn.004097a0
mov al, 1
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.005320a3
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov esi, eax
lea eax, [esp + 0x89]
push ebx
push eax
mov byte [esp + 0x90], bl
call fcn.00535390
add esp, 0xc
push ebx
push 0x400
lea ecx, [esp + 0x8c]
push ecx
push ebx
push esi
push ebx
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x3ff
lea edx, [esp + 0x489]
push ebx
push edx
mov byte [esp + 0x490], bl
call fcn.00535390
add esp, 0xc
push esi
lea eax, [esp + 0x88]
push eax
push str._s__d_
mov eax, 0x400
lea edx, [esp + 0x490]
call fcn.00422400
add esp, 0xc
push 0x10
push str.Rappelz
lea ecx, [esp + 0x8c]
push ecx
jmp 0x41cbf4