Function at 0x437e03
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1bc
mov eax, dword [0x101badf4]
xor eax, esp
mov dword [esp + 0x1b8], eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.00438203
push 0x1018e254
call fcn.00438203
cmp dword [0x101dbb40], 0
je 0x437fbc
push 0x100
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.0050fcc3
add esp, 0xc
lea eax, [esp + 0xb8]
push 0x100
push eax
push 0
call dword [0x10129220]
push eax
call dword [0x10129224]
test eax, eax
je 0x437fbc
lea eax, [esp + 0xb8]
push 0x5c
push eax
call fcn.0050f3e3
push 0x1018e22c
push 0x100
mov byte [eax + 1], 0
lea eax, [esp + 0xc8]
push eax
call fcn.0051b5c6
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.0051ab0e
add esp, 0x1c
mov dword [esp + 4], 0
cmp dword [esp + 0x5c], 0x19000
lea eax, [esp + 0xb8]
jle 0x437ed8
push 0x1018e23c
jmp 0x437edd
push 0x1018e240
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0051ad1e
add esp, 0xc
test eax, eax
jne 0x437fbc
cmp dword [esp + 4], eax
je 0x437fbc
push eax
call fcn.0051ade4
push 0x40
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
push 0
push eax
mov dword [esp + 0x1c], edx
call fcn.0050fcc3
lea eax, [esp + 0x18]
mov dword [esp + 0x40], 0
push eax
xorps xmm0, xmm0
lea eax, [esp + 0x24]
push eax
movaps xmmword [esp + 0x28], xmm0
movaps xmmword [esp + 0x38], xmm0
call fcn.0051b0d7
lea eax, [esp + 0x28]
push eax
push 0x1018e244
lea eax, [esp + 0x98]
push 0x40
push eax
call fcn.0051b211
lea ecx, [esp + 0xa0]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437f66
push dword [esp + 4]
sub ecx, edx
lea eax, [esp + 0x7c]
push ecx
push 1
push eax
call fcn.0051b468
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437f88
push dword [esp + 4]
sub ecx, edx
push ecx
push 1
push esi
call fcn.0051b468
push dword [esp + 0x14]
push 1
push 1
push 0x1018e254
call fcn.0051b468
push dword [esp + 0x24]
call fcn.0051b536
add esp, 0x24
cmp dword [ebp + 8], 2
jl 0x4380d9
mov eax, dword [0x101dbd34]
test eax, eax
je 0x437fd2
push esi
call eax
cmp dword [0x101dbae8], 0
je 0x4380ee
cmp dword [0x101dbaec], 0
jne 0x4380ee
mov ecx, esi
mov dword [0x101dbaec], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438013
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.00412893
mov edx, dword [esp + 0x24]
mov eax, edx
mov ecx, dword [esp + 0x20]
sub eax, ecx
push 0xf
push 0x101924b0
cmp eax, 0xf
jb 0x438063
cmp edx, 0x10
lea esi, [esp + 0x18]
lea eax, [ecx + 0xf]
cmovae esi, dword [esp + 0x18]
add esi, ecx
mov dword [esp + 0x28], eax
push esi
call fcn.0050f743
add esp, 0xc
mov byte [esi + 0xf], 0
jmp 0x438077
mov byte [esp + 0xc], 0
lea ecx, [esp + 0x18]
push dword [esp + 0xc]
push 0xf
call fcn.00413483
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
push 0x42014
cmovae eax, dword [esp + 0x14]
push 0x101924c0
push eax
push 0
call dword [0x10129334]
cmp eax, 6
je 0x4380ee
mov edx, dword [esp + 0x24]
mov dword [0x101dbaec], 0
cmp edx, 0x10
jb 0x4380d9
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4380cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4380f5
push edx
push ecx
call fcn.0050d7d8
add esp, 8
mov ecx, dword [esp + 0x1bc]
pop esi
xor ecx, esp
call fcn.0050d7a4
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.0051c0e7
call fcn.00511ebc
int3