Function at 0x41b0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x469ea0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x64c], ebx
cmp esi, 3
je 0x41b123
cmp esi, 2
je 0x41b203
cmp esi, 1
je 0x41b203
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x41b187
cmp eax, 0xffffffff
je 0x41b13d
mov eax, dword [edi]
push eax
call fcn.00418c00
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x41b10b
cmp esi, dword [eax + 0x10]
jge 0x41b159
push eax
call fcn.00418820
add esp, 4
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x41b172
mov edx, dword [edi]
push edx
call fcn.00418870
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x41b160
mov ecx, dword [edi + 0x23c]
mov edx, dword [edi]
push ecx
push edx
call fcn.0041ac00
add esp, 8
mov dword [edi + 4], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi]
lea eax, [ebp - 0x645]
push eax
push ecx
push ebx
push edx
call fcn.0041ad80
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x41b1b6
mov eax, dword [edi]
push eax
call fcn.00418c00
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x645], 0
jne 0x41b303
test esi, esi
jle 0x41b1df
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 0x6a]
neg eax
sbb eax, eax
pop edi
and eax, 0x4fff000
pop esi
add eax, 0x1000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
or ebx, 0xffffffff
cmp dword [edi + 4], ebx
je 0x41b216
mov ecx, dword [edi]
push ecx
call fcn.00418c00
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], ebx
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jge 0x41b10b
cmp ebx, dword [eax + 0x10]
jge 0x41b235
push eax
call fcn.00418820
add esp, 4
mov edx, dword [edi]
cmp dword [edx + 0x10], ebx
jge 0x41b297
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x41b28d
cmp dword [esi + 0x18], 0
je 0x41b28d
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x41b28d
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
push 0
lea edx, [esi + 0x78]
mov dword [esi + 0x10], eax
push edx
lea eax, [esi + 0x28]
push eax
push esi
call fcn.00418480
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebx
jl 0x41b240
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x644]
push edx
push ebx
mov ecx, edi
call fcn.00418da0
test byte [ebp - 0x438], 0x10
je 0x41b318
cmp esi, 1
je 0x41b303
mov ecx, dword [ebp - 0x64c]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x41b2d3
cmp eax, 0x5c
je 0x41b2d3
test ax, ax
je 0x41b2f3
cmp word [ecx + 2], 0x3a
jne 0x41b2f3
push ecx
push 0
call fcn.00419490
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
push ecx
add edi, 0x244
push edi
call fcn.00419490
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x64c]
cmp esi, 1
je 0x41b3d0
mov esi, ebx
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x41b34e
cmp ax, 0x2f
je 0x41b33f
cmp ax, 0x5c
jne 0x41b342
lea ebx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41b333
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
jmp 0x41b360
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41b360
cmp ebx, esi
jne 0x41b3f1
xor eax, eax
mov word [ebp - 0x20c], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 0x244]
push esi
lea ecx, [ebp - 0x414]
push 0x45b254
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x20c]
push edx
push esi
call fcn.00419490
add esp, 0x1c
mov eax, dword [ebp - 0x438]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b45b
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
mov ecx, ebx
sub ecx, esi
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x20c], dx
mov ax, word [ebp - 0x20c]
cmp ax, 0x2f
je 0x41b42b
cmp ax, 0x5c
je 0x41b42b
test ax, ax
je 0x41b37c
cmp word [ebp - 0x20a], 0x3a
jne 0x41b37c
push ebx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push 0x45b248
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x20c]
push edx
push 0
call fcn.00419490
add esp, 0x18
jmp 0x41b3ad
mov edx, dword [edi + 0x23c]
mov eax, dword [edi]
push edx
push eax
call fcn.0041ac00
add esp, 8
cmp dword [edi + 0x240], 0
jne 0x41b489
push 0x4000
call fcn.0043d95e
add esp, 4
mov dword [edi + 0x240], eax
mov dword [ebp - 0x64c], 0
jmp 0x41b4a0
mov edx, dword [edi + 0x240]
mov eax, dword [edi]
lea ecx, [ebp - 0x645]
push ecx
push 0x4000
push edx
push eax
call fcn.0041ad80
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x41b500
test esi, esi
js 0x41b4f4
jle 0x41b4e7
mov edx, dword [edi + 0x240]
push 0
lea ecx, [ebp - 0x650]
push ecx
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b50c
cmp byte [ebp - 0x645], 0
jne 0x41b518
test esi, esi
jne 0x41b4a0
mov dword [ebp - 0x64c], 0x5000000
jmp 0x41b534
mov dword [ebp - 0x64c], 0x1000
jmp 0x41b534
mov dword [ebp - 0x64c], 0x400
jmp 0x41b534
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x42c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x41b541
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push eax
call fcn.00418c00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x64c]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10