Function at 0x49b9b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
push esi
xor esi, esi
cmp eax, esi
push edi
mov edi, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
je 0x49ba03
cmp byte [eax], 0x2d
jne 0x49ba03
push 0x62
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x49b9e8
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 4]
push 0x6e
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x49b9fe
mov dword [esp + 0xc], edi
mov edi, 2
mov ecx, dword [ebx + edi*4]
cmp ecx, esi
jne 0x49ba1f
mov ecx, dword [ebx]
push esi
push esi
push ecx
push esi
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebp
mov ebp, dword [esp + 0x24]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x49ba26
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ba35
sub eax, edx
cmp eax, 0x5a
jbe 0x49ba5a
mov edx, dword [ebx]
push 3
push esi
push edx
push esi
call fcn.0048a440
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebp
call fcn.0049aa40
mov esi, eax
xor ecx, ecx
add esp, 4
cmp esi, ecx
jne 0x49ba82
mov eax, dword [ebx]
push 3
push ecx
push eax
push ecx
call fcn.0048a440
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [0x637098], esi
inc edi
mov dword [esi + 0x16c], ecx
mov dword [esi + 0x170], ecx
mov eax, dword [ebx + edi*4]
cmp eax, ecx
jne 0x49bab2
mov edx, dword [ebx]
push ecx
push ecx
push edx
push ecx
call fcn.0048a440
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [esp + 0x14], ecx
je 0x49baee
cmp byte [eax], 0x26
jne 0x49ba6b
push ebp
push eax
call fcn.0041fed0
add esp, 8
test eax, eax
jne 0x49bae2
mov ecx, dword [ebx]
push 3
push eax
push ecx
push eax
call fcn.0048a440
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov edi, dword [eax + 8]
add ecx, edx
jmp 0x49bb0f
push ebx
push ebp
push edi
mov byte [ebp], 0
call fcn.00515990
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49bb02
sub eax, edx
mov edi, eax
mov ecx, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x168]
push ecx
push eax
call ebx
test eax, eax
mov ebp, dword [esp + 0x28]
je 0x49bbd8
jmp 0x49bb40
cmp dword [esp + 0x20], edi
mov eax, dword [esp + 0x2c]
jne 0x49bc2a
test eax, eax
je 0x49bb9e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49bb66
cmp eax, 1
jne 0x49bc55
add edi, 2
push esi
push edi
push 0
push 0x93e
call fcn.00421db0
add esp, 8
push eax
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x61369c]
mov edx, dword [esp + 0x2c]
push ecx
push ebp
push edx
mov dword [0x63f7ac], 0
call fcn.005275f0
add esp, 0x1c
cmp dword [esp + 0x10], 1
jne 0x49bc55
push 0
lea eax, [esp + 0x24]
push eax
mov edi, 2
push edi
mov dword [esp + 0x2c], 0
mov ecx, dword [esi + 0x168]
push 0x5e6c94
push ecx
mov dword [esp + 0x24], edi
call ebx
test eax, eax
jne 0x49bb40
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49bc17
push esi
push 0
push 0x93d
call fcn.00421db0
add esp, 8
push eax
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x61369c]
mov eax, dword [esp + 0x28]
push edx
push ebp
push eax
mov dword [0x63f7ac], 0
call fcn.005275f0
add esp, 0x18
pop ebp
mov eax, 1
pop edi
mov dword [esi + 0x170], eax
pop esi
pop ebx
add esp, 8
ret
test eax, eax
je 0x49bc17
push esi
push 0
push 0x93d
call fcn.00421db0
add esp, 8
push eax
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x61369c]
mov edx, dword [esp + 0x28]
push ecx
push ebp
push edx
jmp 0x49bc05
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret