Function at 0x422c0a
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.0040935e
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 0x422c6c
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.0040930f
add esp, 0x10
mov ecx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
mov edx, esi
call fcn.00425bca
pop ecx
pop ecx
test eax, eax
jne 0x422c96
cmp dword [ebp + 8], eax
jne 0x422c96
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x422dca
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.00433187
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov edx, esi
mov dword [esp + 0x1c], eax
call fcn.00425aff
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.00409192
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 0x422d4c
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x422d1f
cmp ecx, 0x1f
jg 0x422d3b
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
je 0x422d3b
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.0041954c
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [esi + 0x2a]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x422d0c
mov ebx, dword [esp + 0x28]
mov ecx, edi
call fcn.0040950e
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.00433133
add esp, 0x1c
mov ecx, edi
call fcn.0040950e
cmp esi, eax
jge 0x422da2
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.0040930f
add esp, 0x10
jmp 0x422da9
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.00425732
mov eax, dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x422e55
push eax
push ecx
push dword [ebp + 0x10]
mov edx, esi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00422e9b
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.00409192
add esp, 0x18
cmp byte [ebx + 0x12], 0
jne 0x422e11
push 0xfffffffffffffffa
mov edx, esi
mov ecx, edi
call fcn.004098c3
pop ecx
cmp byte [ebp + 0x24], 0
je 0x422e21
push 4
pop edx
mov ecx, edi
call fcn.0040962b
mov eax, dword [esp + 0x14]
test eax, eax
js 0x422e3a
cmp eax, dword [ebp + 0xc]
je 0x422e3a
push eax
push 0x76
pop edx
mov ecx, edi
call fcn.0040917e
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.0040962b
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x18]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.004260be
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.00433133
mov edx, dword [esp + 0x44]
add esp, 0x2c
mov ecx, edi
call fcn.004093a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret