Function at 0x40d222
Capabilities:
Write file on windows

Disassembly:
push 0x118
mov eax, 0x43b0f4
call fcn.00424c64
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x60]
push ebx
mov edx, 0x443ae8
call fcn.00414e7e
pop ecx
lea eax, [ebp - 0xc0]
push eax
call fcn.0040eabc
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
push eax
call fcn.00412355
lea ecx, [ebp - 0xc0]
call fcn.00409c92
mov eax, dword [0x44d5d0]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x11c], 0x444aa0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 1
lea edi, [esi + 0x34]
push edi
push dword [esi + 0x18]
lea ecx, [ebp - 0x11c]
push dword [esi + 0x60]
push dword [esi + 0x14]
call fcn.004124c5
cmp byte [esi + 0x5a], bl
jne 0x40d35d
call dword [0x43c388]
push ebx
push ebx
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xc0], eax
call fcn.00411c7e
test eax, eax
jne 0x40d312
push 0xe
call dword [0x43c118]
or eax, 0xffffffff
jmp 0x40d342
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00411c27
push ebx
push 0x40f008
push dword [ebp - 0xc0]
push 0x3e8
push dword [0x44e544]
call dword [0x43c378]
cmp eax, 2
sete al
mov byte [esi + 0x59], al
test al, al
je 0x40d35d
cmp byte [esi + 0x58], 0
je 0x40d805
mov byte [esi + 0x5a], 1
cmp byte [ebp - 0xd4], 0
jne 0x40d36d
mov ecx, edi
call fcn.0040edfb
lea eax, [ebp - 0x124]
push eax
call fcn.0041feb7
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0041fc3d
lea eax, [ebp - 0xb4]
push eax
push 0x443af0
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.00422497
mov eax, dword [0x44d5d0]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0xc4]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push 0x443b14
push eax
call fcn.004121dd
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
push eax
mov edx, 0x443b28
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
call fcn.00415167
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xbc]
push eax
mov edx, 0x443b40
call fcn.00415167
mov eax, dword [0x44d5d0]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xcc]
push dword [ebp - 0xbc]
mov edi, 0x444ab0
push edi
push eax
call fcn.004121dd
add esp, 0x44
lea eax, [ebp - 0xd0]
push dword [ebp - 0xc0]
push edi
push eax
call fcn.004121dd
add esp, 0xc
lea ecx, [ebp - 0xb8]
push 0x443b58
call fcn.00409d25
push 0x443ba8
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
push 0x443be4
lea ecx, [ebp - 0xc0]
call fcn.00412305
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xc0]
cmp dword [eax - 8], 0
je 0x40d4a4
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00409c92
push 0x443bf0
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 4]
cmp dword [eax - 8], 0
je 0x40d4db
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443c38
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 8]
cmp dword [eax - 8], 0
je 0x40d503
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443c60
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 0xc]
cmp dword [eax - 8], 0
je 0x40d52b
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443c88
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 0x10]
cmp dword [eax - 8], 0
je 0x40d553
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443cb4
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
push 0x443ce8
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 0x1c]
cmp dword [eax - 8], 0
je 0x40d58b
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443d00
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [0x44d5d0]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xbc]
call fcn.00412355
mov eax, dword [ebp - 0xbc]
cmp dword [eax - 8], 0
jle 0x40d5d7
lea eax, [ebp - 0xbc]
push eax
lea ecx, [esi + 0x20]
call fcn.00412355
mov eax, dword [esi + 0x20]
cmp dword [eax - 8], 0
je 0x40d5ef
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443d84
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00412355
mov eax, dword [ebp - 0xbc]
cmp dword [eax - 8], 0
jle 0x40d62c
lea eax, [ebp - 0xbc]
push eax
lea ecx, [esi + 0x24]
call fcn.00412355
mov eax, dword [esi + 0x24]
cmp dword [eax - 8], 0
je 0x40d644
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443dc0
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 0x2c]
cmp dword [eax - 8], 0
je 0x40d66c
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443e00
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
push 0x443e48
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00412355
mov eax, dword [ebp - 0xbc]
cmp dword [eax - 8], 0
jle 0x40d6cb
lea eax, [ebp - 0xbc]
push eax
lea ecx, [esi + 0x28]
call fcn.00412355
mov eax, dword [esi + 0x28]
cmp dword [eax - 8], 0
je 0x40d6e3
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443e8c
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [esi + 0x30]
cmp dword [eax - 8], 0
je 0x40d70b
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push str.UUU_a_
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [ebp - 0xcc]
cmp dword [eax - 8], 0
je 0x40d736
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443ef0
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
mov eax, dword [ebp - 0xd0]
cmp dword [eax - 8], 0
je 0x40d761
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.00411e29
push 0x443f38
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
push 0x443f84
lea ecx, [ebp - 0xb8]
call fcn.00411e8f
push 0x443fa0
push dword [esi + 0x60]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], ebx
push eax
call fcn.0042172b
add esp, 0xc
cmp dword [ebp - 0xc8], 0
je 0x40d7ce
push dword [ebp - 0xc8]
mov eax, dword [ebp - 0xb8]
push 2
push dword [eax - 8]
push eax
call fcn.0042267a
push dword [ebp - 0xc8]
call fcn.004218a6
add esp, 0x14
mov bl, 1
lea ecx, [ebp - 0xbc]
call fcn.00409c92
lea ecx, [ebp - 0xd0]
call fcn.00409c92
lea ecx, [ebp - 0xcc]
call fcn.00409c92
lea ecx, [ebp - 0xc4]
call fcn.00409c92
lea ecx, [ebp - 0xb8]
call fcn.00409c92
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0040d81c
mov al, bl
call fcn.00424c13
ret