Function at 0x49dc10
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 0x49dc63
cmp byte [eax], 0x2d
jne 0x49dc63
push 0x62
push eax
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x49dc48
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 4]
push 0x6e
push eax
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x49dc5e
mov dword [esp + 0xc], edi
mov edi, 2
mov ecx, dword [ebx + edi*4]
cmp ecx, esi
jne 0x49dc7f
mov ecx, dword [ebx]
push esi
push esi
push ecx
push esi
call fcn.0048bd90
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 0x49dc86
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dc95
sub eax, edx
cmp eax, 0x100
jb 0x49dcbc
mov edx, dword [ebx]
push 3
push esi
push edx
push esi
call fcn.0048bd90
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebp
call fcn.0049cf00
mov esi, eax
xor ecx, ecx
add esp, 4
cmp esi, ecx
jne 0x49dce4
mov eax, dword [ebx]
push 3
push ecx
push eax
push ecx
call fcn.0048bd90
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [0x6696c4], esi
inc edi
mov dword [esi + 0x568], ecx
mov dword [esi + 0x56c], ecx
mov eax, dword [ebx + edi*4]
cmp eax, ecx
jne 0x49dd14
mov edx, dword [ebx]
push ecx
push ecx
push edx
push ecx
call fcn.0048bd90
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [esp + 0x14], ecx
je 0x49dd50
cmp byte [eax], 0x26
jne 0x49dccd
push ebp
push eax
call fcn.00420030
add esp, 8
test eax, eax
jne 0x49dd44
mov ecx, dword [ebx]
push 3
push eax
push ecx
push eax
call fcn.0048bd90
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 0x49dd71
push ebx
push ebp
push edi
mov byte [ebp], 0
call fcn.0051c470
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dd64
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 + 0x564]
push ecx
push eax
call ebx
test eax, eax
mov ebp, dword [esp + 0x28]
je 0x49de37
lea ecx, [ecx]
cmp dword [esp + 0x20], edi
mov eax, dword [esp + 0x2c]
jne 0x49de88
test eax, eax
je 0x49ddfd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49ddc6
cmp eax, 1
jne 0x49deb2
add edi, 2
push esi
push edi
push 0
push 0x93e
call fcn.00424130
add esp, 8
push eax
push ebp
call fcn.005d9929
mov ecx, dword [0x63ca9c]
mov edx, dword [esp + 0x2c]
push ecx
push ebp
push edx
mov dword [0x6870cc], 0
call fcn.0052eb30
add esp, 0x1c
cmp dword [esp + 0x10], 1
jne 0x49deb2
push 0
lea eax, [esp + 0x24]
push eax
mov edi, 2
push edi
mov dword [esp + 0x2c], 0
mov ecx, dword [esi + 0x564]
push 0x5f4c8c
push ecx
mov dword [esp + 0x24], edi
call ebx
test eax, eax
jne 0x49dda0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49de75
push esi
push 0
push 0x93d
call fcn.00424130
add esp, 8
push eax
push ebp
call fcn.005d9929
mov edx, dword [0x63ca9c]
mov eax, dword [esp + 0x28]
push edx
push ebp
push eax
mov dword [0x6870cc], 0
call fcn.0052eb30
add esp, 0x18
pop ebp
mov eax, 1
pop edi
mov dword [esi + 0x56c], eax
pop esi
pop ebx
add esp, 8
ret
test eax, eax
je 0x49de75
push esi
push 0
push 0x93d
call fcn.00424130
add esp, 8
push eax
push ebp
call fcn.005d9929
mov ecx, dword [0x63ca9c]
mov edx, dword [esp + 0x28]
push ecx
push ebp
push edx
jmp 0x49de63
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret