Function at 0x45380a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax + 8]
mov esi, edx
mov dword [esp + 0xc], eax
mov ecx, edi
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
call fcn.00439f5e
mov ebx, dword [esi + 0x24]
mov ecx, eax
and bl, 0x20
mov dword [esp + 0x18], ecx
neg bl
sbb bl, bl
and bl, 0xfd
add bl, 0x20
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x28], ebx
jne 0x45386c
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00439f0f
add esp, 0x10
mov ecx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
mov edx, esi
call fcn.004567ca
pop ecx
pop ecx
test eax, eax
jne 0x453896
cmp dword [ebp + 8], eax
jne 0x453896
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x4539ca
movzx eax, byte [ebp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push eax
push esi
mov dword [esp + 0x34], eax
xor eax, eax
push 3
push eax
push eax
call fcn.00463d87
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov edx, esi
mov dword [esp + 0x1c], eax
call fcn.004566ff
mov edx, dword [esp + 0xc]
or dword [esp + 0x1c], eax
mov ecx, dword [edx + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
movsx eax, word [esi + 0x2a]
inc eax
add eax, ecx
mov dword [edx + 0x2c], eax
lea eax, [ecx + 1]
push eax
push dword [ebp + 0x14]
mov ecx, edi
push 0x40
pop edx
call fcn.00439d92
pop ecx
pop ecx
xor ecx, ecx
xor edx, edx
or eax, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
cmp dx, word [esi + 0x2a]
jge 0x45394c
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x45391f
cmp ecx, 0x1f
jg 0x45393b
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
je 0x45393b
mov eax, dword [esp + 0x10]
mov edx, esi
inc eax
add eax, ecx
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0044a14c
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [esi + 0x2a]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x45390c
mov ebx, dword [esp + 0x28]
mov ecx, edi
call fcn.0043a10e
push dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov esi, eax
push dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
push dword [esp + 0x30]
push 1
push 0
push 0x6d
call fcn.00463d33
add esp, 0x1c
mov ecx, edi
call fcn.0043a10e
cmp esi, eax
jge 0x4539a2
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push dword [esp + 0x20]
push dword [ebp + 0xc]
call fcn.00439f0f
add esp, 0x10
jmp 0x4539a9
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [esp + 0xc]
mov edx, esi
push eax
push eax
push eax
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.00456332
mov eax, dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x453a55
push eax
push ecx
push dword [ebp + 0x10]
mov edx, esi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00453a9b
xor eax, eax
mov ecx, edi
cmp byte [ebp + 0x1c], al
setne al
push eax
push dword [ebp + 0xc]
push 0x76
pop edx
call fcn.00439d92
add esp, 0x18
cmp byte [ebx + 0x12], 0
jne 0x453a11
push 0xfffffffffffffffa
mov edx, esi
mov ecx, edi
call fcn.0043a4c3
pop ecx
cmp byte [ebp + 0x24], 0
je 0x453a21
push 4
pop edx
mov ecx, edi
call fcn.0043a22b
mov eax, dword [esp + 0x14]
test eax, eax
js 0x453a3a
cmp eax, dword [ebp + 0xc]
je 0x453a3a
push eax
push 0x76
pop edx
mov ecx, edi
call fcn.00439d7e
pop ecx
xor eax, eax
cmp byte [ebp + 0x24], 2
push 2
pop ecx
movzx eax, al
cmove eax, ecx
mov ecx, edi
movzx edx, al
call fcn.0043a22b
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.00456cbe
push dword [esp + 0x28]
movzx eax, byte [ebp + 0x20]
mov ecx, ebx
mov edx, dword [ebp + 8]
push eax
push dword [esp + 0x28]
push esi
push 2
pop eax
push eax
xor eax, eax
push eax
push 0x6d
call fcn.00463d33
mov edx, dword [esp + 0x44]
add esp, 0x2c
mov ecx, edi
call fcn.00439fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret