Function at 0x48cdb0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, eax
xor eax, eax
push esi
push ebx
sub esp, 0x5c
test edx, edx
mov dword [esp + 0x58], edx
setne al
test eax, eax
mov dword [esp + 0x54], eax
jne 0x48d1b4
mov eax, edi
call fcn.0048cd20
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x48d0e8
mov edx, dword [edi + 0x14]
xor ebx, ebx
test edx, edx
je 0x48ce40
lea esi, [esi]
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x48ce40
mov ecx, dword [edx + 0x20]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x50], ecx
test edx, edx
je 0x48ce32
test eax, eax
jne 0x48ce32
lea esi, [esi]
cmp dword [edx], 0x6e
mov eax, dword [edx + 0x10]
mov dword [esp + 0x4c], eax
je 0x48d113
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x48ce32
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x48ce10
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x48cdf0
lea esi, [esi]
test ebx, ebx
je 0x48ce4e
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x48cde3
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x48d276
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x14]
xor ebx, ebx
mov dword [esp + 0x40], ebx
test eax, eax
je 0x48cf60
nop
mov edx, dword [ecx + 0x14]
test edx, edx
jne 0x48cf60
mov ebx, dword [eax + 0x20]
mov dword [esp + 0x48], ebx
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x48cf50
test edx, edx
nop
jne 0x48cf50
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
cmp eax, 0x5e
sete dl
cmp eax, 0x72
sete al
or eax, edx
test al, 1
je 0x48d260
mov eax, dword [ebx + 0xc]
mov ebp, ebx
mov esi, dword [ebx + 8]
mov dword [esp + 0x3c], eax
cmp esi, eax
je 0x48d2f0
cmp byte [esi + 4], 0
jne 0x48d260
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48d2f0
cmp dword [esi + 0x10], 1
jg 0x48d240
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x48cf1a
nop
mov ecx, dword [ebx + 0x14]
mov edx, ebx
mov eax, ebp
mov dword [esp + 0x38], ecx
call fcn.0048cb10
cmp eax, 1
je 0x48d22e
cmp eax, 3
je 0x48d1e0
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x48cef0
mov ecx, dword [esp + 0x3c]
mov edx, esi
mov eax, edi
mov dword [esp], ecx
call fcn.0048bb40
mov edx, esi
mov eax, edi
call fcn.0048b330
mov ebx, dword [esp + 0x44]
mov eax, 1
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x40], eax
test ebx, ebx
jne 0x48d26c
nop
lea esi, [esi]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x48ce70
lea esi, [esi]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x48d44a
mov ebp, dword [ecx + 0x14]
test ebp, ebp
je 0x48ce5d
mov eax, dword [edi + 0x14]
xor ebx, ebx
mov dword [esp + 0x28], ebx
test eax, eax
je 0x48d080
nop
lea esi, [esi]
mov edx, dword [ecx + 0x14]
test edx, edx
jne 0x48d080
mov ebx, dword [eax + 0x20]
mov dword [esp + 0x30], ebx
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x48d070
test edx, edx
nop
jne 0x48d070
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
cmp eax, 0x24
sete dl
cmp eax, 0x61
sete al
or eax, edx
test al, 1
je 0x48d380
mov eax, dword [ebx + 8]
mov ebp, ebx
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
cmp esi, eax
je 0x48d396
cmp byte [esi + 4], 0
jne 0x48d380
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x48d396
cmp dword [esi + 8], 1
jg 0x48d360
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x48d03a
nop
mov ecx, dword [ebx + 0x10]
mov edx, ebx
mov eax, ebp
mov dword [esp + 0x20], ecx
call fcn.0048cb10
cmp eax, 1
je 0x48d34e
cmp eax, 3
je 0x48d300
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x48d010
mov ecx, dword [esp + 0x24]
mov edx, esi
mov eax, edi
mov dword [esp], ecx
call fcn.0048bb80
mov edx, esi
mov eax, edi
call fcn.0048b330
mov ebx, dword [esp + 0x2c]
mov eax, 1
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x28], eax
test ebx, ebx
jne 0x48d38c
nop
lea esi, [esi]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x48cf90
lea esi, [esi]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x48d3ea
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x48cf77
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x48d4b6
mov eax, edi
call fcn.0048cd20
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov eax, 0x1000
test edx, edx
je 0x48d0e0
mov ecx, edx
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x48d0d7
mov edx, dword [edi + 0xc]
cmp dword [eax + 0xc], edx
je 0x48d3dd
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x48d0c7
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x48d0ba
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x5c8e48
mov eax, dword [esp + 0x58]
mov edx, 0xa
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
jmp 0x48cde3
mov esi, dword [edx + 8]
mov ebx, dword [edx + 0xc]
cmp esi, ebx
je 0x48d2a1
mov eax, dword [ebx + 8]
mov ebp, 1
cmp dword [esi + 0x10], eax
jle 0x48d178
xor ebp, ebp
mov eax, edi
call fcn.0048b230
test ebp, ebp
je 0x48d161
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x48d188
mov dword [esp], ebx
mov edx, esi
mov eax, edi
call fcn.0048bb40
mov edx, esi
mov eax, edi
mov ebx, 1
call fcn.0048a4a0
jmp 0x48ce20
mov eax, dword [ebx + 8]
test eax, eax
jne 0x48d19e
mov dword [esp], esi
mov edx, ebx
mov eax, edi
call fcn.0048bb80
mov edx, ebx
jmp 0x48d150
jne 0x48d130
mov eax, dword [ebx + 0x10]
cmp dword [esi + 8], eax
setle al
movzx ebp, al
jmp 0x48d130
mov dword [esp], ebx
mov edx, esi
mov eax, edi
call fcn.0048c560
mov ebx, 1
jmp 0x48ce20
mov dword [esp], esi
mov edx, ebx
mov eax, edi
call fcn.0048bbc0
mov ebx, 1
jmp 0x48ce20
mov dword [esp + 0xc], edx
mov esi, 0x12
mov ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0x5c8e53
call sub.msvcrt.dll_fwrite
jmp 0x48cdd0
mov eax, edi
call fcn.0048a330
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x48d260
mov eax, dword [esp + 0x3c]
mov edx, ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, edi
mov dword [esp], ecx
call fcn.0048bb10
mov eax, dword [esp + 0x34]
mov edx, ebp
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, edi
call fcn.0048bb10
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x48d260
mov edx, ebx
mov eax, edi
call fcn.0048b230
mov ebx, dword [esp + 0x38]
jmp 0x48cf16
mov eax, edi
call fcn.0048a330
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x48d2b2
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x48cf50
mov eax, dword [ecx + 0x14]
test eax, eax
jmp 0x48ce90
mov dword [esp], 0x5c8e66
mov ecx, dword [esp + 0x58]
mov ebp, 0xe
mov dword [esp + 8], ebp
mov esi, 1
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_fwrite
jmp 0x48ce5a
mov eax, edi
mov ebx, 1
call fcn.0048b230
jmp 0x48ce20
mov dword [esp], eax
mov edx, esi
mov eax, edi
call fcn.0048c560
mov eax, dword [esp + 0x34]
mov edx, ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], ecx
call fcn.0048bb10
mov edx, ebx
mov eax, edi
call fcn.0048b230
mov esi, dword [esp + 0x34]
mov ebp, dword [esi + 0x14]
jmp 0x48cee8
mov edx, ebx
mov eax, edi
call fcn.0048b230
jmp 0x48cf33
mov eax, edi
call fcn.0048a330
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x48d380
mov eax, dword [ebx + 0xc]
mov edx, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, edi
call fcn.0048bb10
mov eax, dword [esp + 0x24]
mov edx, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], ecx
call fcn.0048bb10
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x48d380
mov edx, ebx
mov eax, edi
call fcn.0048b230
mov ebx, dword [esp + 0x20]
jmp 0x48d036
mov eax, edi
call fcn.0048a330
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x48d3a4
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x48d070
mov eax, dword [ecx + 0x14]
test eax, eax
jmp 0x48cfb0
mov edx, ebx
mov eax, edi
call fcn.0048b230
jmp 0x48d053
mov dword [esp], eax
mov edx, esi
mov eax, edi
call fcn.0048bbc0
mov eax, dword [esp + 0x24]
mov edx, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], ecx
call fcn.0048bb10
mov edx, ebx
mov eax, edi
call fcn.0048b230
mov esi, dword [esp + 0x1c]
mov ebp, dword [esi + 0xc]
jmp 0x48d008
add esp, 0x5c
mov eax, 0x800
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ecx + 0x14]
test ebx, ebx
jne 0x48d097
mov eax, dword [edi + 0xc]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x48d097
cmp dword [ebx], 0x24
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x2c], eax
je 0x48d415
mov ebx, dword [esp + 0x2c]
jmp 0x48d3fb
mov eax, dword [ebx + 0xc]
mov edx, 0x70
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
movsx eax, word [ebx + 4]
movsx eax, word [edi + eax*2 + 0x28]
mov dword [esp], eax
mov eax, edi
call fcn.0048b520
mov edx, ebx
mov eax, edi
call fcn.0048b230
mov ebx, dword [esp + 0x2c]
jmp 0x48d3fb
mov esi, dword [ecx + 0x14]
test esi, esi
jne 0x48cf77
mov eax, dword [edi]
mov ebx, dword [eax + 0x14]
test ebx, ebx
jne 0x48d46b
jmp 0x48cf77
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x48d4ae
cmp dword [ebx], 0x5e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
jne 0x48d463
mov eax, dword [ebx + 0xc]
mov edx, 0x70
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
movsx eax, word [ebx + 4]
movsx eax, word [edi + eax*2 + 0x24]
mov dword [esp], eax
mov eax, edi
call fcn.0048b520
mov edx, ebx
mov eax, edi
call fcn.0048b230
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x48d46b
mov ecx, dword [edi + 0x2c]
jmp 0x48cf77
mov dword [esp], 0x5c8e75
mov ecx, dword [esp + 0x58]
mov edx, 0x10
mov dword [esp + 8], edx
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_fwrite
jmp 0x48d0a3