Function at 0x405550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], 0x420460
call fcn.004166a5
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x3a39d420
mov esi, 0xac5e620e
mov edi, 0xe7256baf
jmp 0x4055c0
mov dword [ebp - 0x38], 0xcbc34146
nop
mov eax, dword [ebp - 0x38]
cmp eax, 0x6b09f2fe
jg 0x4055f0
cmp eax, 0x8edf11fe
jg 0x405600
cmp eax, 0x82e0da14
jne 0x4055c0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0xd3bfcd40
jmp 0x4055c0
cmp eax, 0x6b09f2ff
jne 0x4055c0
jmp 0x4055b8
cmp eax, 0x95a015a6
jg 0x405623
cmp eax, 0x8edf11ff
jne 0x4055c0
mov eax, 0x54d8dd9f
cmp dword [ebp - 0x20], 0
jne 0x40561e
mov eax, 0x82e0da14
mov dword [ebp - 0x38], eax
jmp 0x4055c0
cmp eax, 0x9cc2e1d3
jg 0x405648
cmp eax, 0x95a015a7
jne 0x4055c0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00416726
mov dword [ebp - 0x38], 0xb03b9954
jmp 0x4055c0
cmp eax, 0xa5b89c03
jg 0x405666
cmp eax, 0x9cc2e1d4
jne 0x4055c0
mov dword [ebp - 0x38], 0xcbc34146
jmp 0x4055c0
cmp eax, 0xb03b9953
jg 0x40567d
cmp eax, 0xa5b89c04
jne 0x4055c0
jmp 0x405939
cmp eax, 0xb91cef2a
jg 0x4056a6
cmp eax, 0xb03b9954
jne 0x4055c0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00416726
mov dword [ebp - 0x38], 0x50943e86
jmp 0x4055c0
cmp eax, 0xc7363694
jg 0x4056da
cmp eax, 0xb91cef2b
jne 0x4055c0
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, esi
sub eax, dword [ebp - 0x30]
add eax, 0x53a19df2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x56da8dcd
jmp 0x4055c0
cmp eax, 0xcb769770
jg 0x4056f8
cmp eax, 0xc7363695
jne 0x4055c0
mov dword [ebp - 0x38], 0xb03b9954
jmp 0x4055c0
cmp eax, 0x56da8dcc
jg 0x405793
cmp eax, 0x54d8dd9e
jg 0x4057aa
cmp eax, 0x50943e85
jg 0x4057f0
cmp eax, 0x3a39d41f
jg 0x405807
cmp eax, 0x35193685
jg 0x40582a
cmp eax, 0x294b3a1d
jg 0x405849
cmp eax, 0x1be016fc
jg 0x405860
cmp eax, 0xcf680a2
jg 0x405877
cmp eax, 0xfbf1cab6
jg 0x40589b
cmp eax, 0xfa25f98a
jg 0x4058c8
cmp eax, 0xde3626eb
jg 0x4058df
cmp eax, 0xcb769771
je 0x405916
cmp eax, 0xcbc34146
jne 0x405922
mov dword [ebp - 0x38], 0x294b3a1e
jmp 0x4055c0
cmp eax, 0x56da8dcd
jne 0x4055c0
mov dword [ebp - 0x38], 0x8edf11ff
jmp 0x4055c0
cmp eax, 0x54d8dd9f
jne 0x4055c0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.004168f4
mov dword [ebp - 0x30], eax
mov ecx, 0xcb769771
cmp eax, dword [ebp - 0x20]
jne 0x4057e8
mov ecx, 0x1be016fd
mov dword [ebp - 0x38], ecx
jmp 0x4055c0
cmp eax, 0x50943e86
jne 0x4055c0
mov dword [ebp - 0x38], 0xa5b89c04
jmp 0x4055c0
cmp eax, 0x3a39d420
jne 0x4055c0
mov eax, 0x9cc2e1d4
cmp dword [ebp - 0x14], 0
je 0x405822
mov eax, 0xde3626ec
mov dword [ebp - 0x38], eax
jmp 0x4055c0
cmp eax, 0x35193686
jne 0x4055c0
cmp dword [ebp - 0x2c], 0
setne byte [ebp - 0xd]
mov dword [ebp - 0x38], 0xcf680a3
jmp 0x4055c0
cmp eax, 0x294b3a1e
jne 0x4055c0
mov dword [ebp - 0x38], 0xd3bfcd40
jmp 0x4055c0
cmp eax, 0x1be016fd
jne 0x4055c0
mov dword [ebp - 0x38], 0xb91cef2b
jmp 0x4055c0
cmp eax, 0xcf680a3
jne 0x4055c0
mov al, byte [ebp - 0xd]
test al, al
mov eax, 0xc7363695
jne 0x405893
mov eax, 0xa5b89c04
mov dword [ebp - 0x38], eax
jmp 0x4055c0
cmp eax, 0xfbf1cab7
jne 0x4055c0
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, edi
sub eax, dword [ebp - 0x30]
add eax, 0x18da9451
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0xb91cef2b
jmp 0x4055c0
cmp eax, 0xfa25f98b
jne 0x4055c0
mov dword [ebp - 0x38], 0x35193686
jmp 0x4055c0
cmp eax, 0xde3626ec
jne 0x4055c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00402450
mov dword [ebp - 0x38], 0x8edf11ff
jmp 0x4055c0
mov dword [ebp - 0x38], 0xd3bfcd40
jmp 0x4055c0
cmp eax, 0xd3bfcd40
jne 0x4055c0
mov dword [ebp - 0x38], 0x35193686
jmp 0x4055c0
mov eax, dword [ebp - 0x34]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret