Function at 0x4513d6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
and dword [esp + 4], 0
mov eax, ecx
push ebx
push esi
push edi
mov esi, dword [eax + 8]
mov edi, edx
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], esi
call fcn.0043696d
mov ebx, dword [edi + 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 0x451437
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
movzx edx, bl
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0043691e
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov edx, edi
push 0
push 0
call fcn.004544d0
pop ecx
pop ecx
test eax, eax
jne 0x451461
cmp dword [ebp + 8], eax
jne 0x451461
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x451592
movzx eax, byte [ebp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push eax
push edi
push 3
push 0
push 0
mov dword [esp + 0x40], eax
call fcn.00462197
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov edx, edi
mov dword [esp + 0x1c], eax
call fcn.00454401
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 [edi + 0x2a]
inc eax
add eax, ecx
mov dword [edx + 0x2c], eax
lea eax, [ecx + 1]
push eax
push dword [ebp + 0x14]
mov ecx, esi
push 0x4b
pop edx
call fcn.00436721
pop ecx
pop ecx
xor ecx, ecx
xor edx, edx
or eax, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
cmp dx, word [edi + 0x2a]
jge 0x451517
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x4514ea
cmp ecx, 0x1f
jg 0x451506
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
je 0x451506
mov eax, dword [esp + 0x10]
mov edx, edi
inc eax
add eax, ecx
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044781f
mov ecx, dword [esp + 0x30]
add esp, 0xc
movsx eax, word [edi + 0x2a]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x4514d7
mov ebx, dword [esp + 0x28]
mov ecx, esi
call fcn.00436b11
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 edi
push 1
push 0
push 0x6e
call fcn.00462143
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
call fcn.00436b11
cmp esi, eax
mov esi, ecx
jge 0x45156e
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.0043691e
add esp, 0x10
jmp 0x451575
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
call fcn.00454020
mov eax, dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
cmp dword [edi + 0xc], ecx
jne 0x451628
push eax
push ecx
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.0045166b
xor eax, eax
mov ecx, esi
cmp byte [ebp + 0x1c], al
setne al
push eax
push dword [ebp + 0xc]
push 0x78
pop edx
call fcn.00436721
add esp, 0x18
cmp byte [ebx + 0x12], 0
je 0x4515df
push str.winFullPathname3
push dword [edi]
call fcn.00420d49
pop ecx
pop ecx
test eax, eax
jne 0x4515eb
push 0xfffffffffffffffa
mov edx, edi
mov ecx, esi
call fcn.00436eca
pop ecx
cmp byte [ebp + 0x24], 0
je 0x4515fb
push 4
pop edx
mov ecx, esi
call fcn.00436c30
mov eax, dword [esp + 0x14]
test eax, eax
js 0x451614
cmp eax, dword [ebp + 0xc]
je 0x451614
push eax
push 0x78
pop edx
mov ecx, esi
call fcn.0043670d
pop ecx
push 2
pop edx
xor eax, eax
mov ecx, esi
cmp byte [ebp + 0x24], dl
cmovne edx, eax
call fcn.00436c30
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.004549c2
push dword [esp + 0x28]
movzx eax, byte [ebp + 0x20]
mov ecx, ebx
mov edx, dword [ebp + 8]
push eax
push dword [esp + 0x28]
push edi
push 2
push 0
push 0x6e
call fcn.00462143
mov edx, dword [esp + 0x44]
add esp, 0x2c
mov ecx, esi
call fcn.004369af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret