Function at 0x405030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], 0x388c0810
jmp 0x405070
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.00416b2d
add esp, 4
mov dword [ebp - 0x30], 0x2ccfae97
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x30]
cmp eax, 0x74a64fed
jg 0x4050a0
cmp eax, 0x93732ca9
jg 0x4050b0
cmp eax, 0x922ef1a7
jne 0x405070
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0xc6144edd
jmp 0x405070
cmp eax, 0x74a64fee
jne 0x405070
jmp 0x40504b
cmp eax, 0x9e99f508
jg 0x40510e
cmp eax, 0x93732caa
jne 0x405070
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00416cfb
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
mov eax, 0x50d3b576
cmp ecx, dword [edx]
jne 0x405106
mov eax, 0xd6fd75bd
mov dword [ebp - 0x30], eax
jmp 0x405070
cmp eax, 0xaa6334dd
jg 0x40512c
cmp eax, 0x9e99f509
jne 0x405070
mov dword [ebp - 0x30], 0xc6144edd
jmp 0x405070
cmp eax, 0xba8502f4
jg 0x40514a
cmp eax, 0xaa6334de
jne 0x405070
mov dword [ebp - 0x30], 0xba8502f5
jmp 0x405070
cmp eax, 0xc6144edc
jg 0x405168
cmp eax, 0xba8502f5
jne 0x405070
mov dword [ebp - 0x30], 0x17f6db05
jmp 0x405070
cmp eax, 0xc79dd17b
jg 0x405190
cmp eax, 0xc6144edd
jne 0x405070
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
setne byte [ebp - 0xd]
mov dword [ebp - 0x30], 0xc79dd17c
jmp 0x405070
cmp eax, 0xd6fd75bc
jg 0x4051bb
cmp eax, 0xc79dd17c
jne 0x405070
mov al, byte [ebp - 0xd]
test al, al
mov eax, 0x93732caa
jne 0x4051b3
mov eax, 0x3ddb32c4
mov dword [ebp - 0x30], eax
jmp 0x405070
cmp eax, 0x67662a2a
jg 0x405274
cmp eax, 0x663717cc
jg 0x40528b
cmp eax, 0x63a71311
jg 0x4052a2
cmp eax, 0x5552070d
jg 0x4052b2
cmp eax, 0x50d3b575
jg 0x4052c9
cmp eax, 0x3ddb32c3
jg 0x4052e0
cmp eax, 0x388c080f
jg 0x405300
cmp eax, 0x2ccfae96
jg 0x405317
cmp eax, 0x269c2ee8
jg 0x40532e
cmp eax, 0x2439eed8
jg 0x40537f
cmp eax, 0x17f6db04
jg 0x405396
cmp eax, 0xd77efc91
jg 0x4053ad
cmp eax, 0xd6fd75bd
jne 0x405070
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov dword [ebp - 0x30], 0x9e99f509
jmp 0x405070
cmp eax, 0x67662a2b
jne 0x405070
mov dword [ebp - 0x30], 0x14b6faf2
jmp 0x405070
cmp eax, 0x663717cd
jne 0x405070
mov dword [ebp - 0x30], 0x74a64fee
jmp 0x405070
cmp eax, 0x63a71312
jne 0x405070
jmp 0x4055f8
cmp eax, 0x5552070e
jne 0x405070
mov dword [ebp - 0x30], 0x14b6faf2
jmp 0x405070
cmp eax, 0x50d3b576
jne 0x405070
mov dword [ebp - 0x30], 0xba8502f5
jmp 0x405070
cmp eax, 0x3ddb32c4
jne 0x405070
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [ebp - 0x30], 0xe958b0
jmp 0x405070
cmp eax, 0x388c0810
jne 0x405070
mov dword [ebp - 0x30], 0x21da36d
jmp 0x405070
cmp eax, 0x2ccfae97
jne 0x405070
mov dword [ebp - 0x30], 0x63a71312
jmp 0x405070
cmp eax, 0x269c2ee9
jne 0x405070
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub esp, 0x10
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004022e0
add esp, 0x10
mov dword [ebp - 0x30], 0x9e99f509
jmp 0x405070
cmp eax, 0x2439eed9
jne 0x405070
mov dword [ebp - 0x30], 0xe958b0
jmp 0x405070
cmp eax, 0x17f6db05
jne 0x405070
mov dword [ebp - 0x30], 0xe958b0
jmp 0x405070
cmp eax, 0xe95c3e91
jg 0x405488
cmp eax, 0xd77efc92
jne 0x405070
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x34], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x38], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x3c], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x44], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x40], esp
mov eax, 4
call fcn.004160a0
mov ecx, esp
mov dword [ebp - 0x4c], ecx
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x48], esp
mov eax, 4
call fcn.004160a0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x34]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x44]
mov dword [eax], esi
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov eax, dword [ebp - 0x40]
mov dword [eax], edi
mov dword [ecx], 0
mov dword [esp], 0xffffffff
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x420460
call fcn.00416e3d
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov dword [ebp - 0x30], 0x21da36d
jmp 0x405070
cmp eax, 0xe958af
jg 0x4054b9
cmp eax, 0xe95c3e92
jne 0x405070
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.00416b2d
add esp, 4
mov dword [ebp - 0x30], 0x74a64fee
jmp 0x405070
cmp eax, 0x21da36c
jg 0x4054e5
cmp eax, 0xe958b0
jne 0x405070
mov ecx, dword [ebp - 0x1c]
mov eax, 0x663717cd
cmp dword [ecx], 0
jne 0x4054dd
mov eax, 0x63a71312
mov dword [ebp - 0x30], eax
jmp 0x405070
cmp eax, 0x21da36d
je 0x405503
cmp eax, 0x14b6faf2
jne 0x4055d4
mov dword [ebp - 0x30], 0x2439eed9
jmp 0x405070
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x2c], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x28], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x24], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x20], esp
mov eax, 4
call fcn.004160a0
mov ecx, esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x1c], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x18], esp
mov eax, 4
call fcn.004160a0
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov dword [ecx], edi
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xffffffff
mov eax, dword [ecx]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], 0x420460
call fcn.00416e3d
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
sete byte [ebp - 0xe]
mov dword [ebp - 0x30], 0x151f6d16
jmp 0x405070
cmp eax, 0x151f6d16
jne 0x405070
mov al, byte [ebp - 0xe]
test al, al
mov eax, 0x67662a2b
jne 0x4055f0
mov eax, 0x269c2ee9
mov dword [ebp - 0x30], eax
jmp 0x405070
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret