Function at 0x461579
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, ecx
xor ecx, ecx
push ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ecx
mov byte [ebp - 1], cl
mov ecx, dword [eax]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov ecx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
call fcn.00468189
test byte [edi + 0x24], 0x20
mov ebx, eax
movsx edx, word [edi + 0x2a]
mov dword [ebp - 0x44], edx
jne 0x4615c2
and dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 1
jmp 0x4615d3
mov ecx, edi
call fcn.00458431
mov dword [ebp - 0xc], eax
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x24], esi
test edx, edx
jle 0x46170a
xor edx, edx
mov dword [ebp - 0x28], edx
movsx eax, word [edi + 0x28]
cmp esi, eax
je 0x4616f7
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x461602
cmp dword [eax + esi*4], 0
jl 0x4616f7
mov ecx, dword [edi + 4]
movzx edi, byte [ecx + edx + 0xc]
test edi, edi
je 0x4616f4
mov al, byte [ebp + 0x20]
push 2
cmp al, 0xa
je 0x461621
movzx edi, al
pop eax
jmp 0x461628
cmp edi, 0xa
pop eax
cmove edi, eax
cmp edi, 5
jne 0x461635
cmp dword [ecx + edx + 4], 0
cmove edi, eax
mov eax, edi
sub eax, 1
je 0x4616a4
sub eax, 1
je 0x461694
sub eax, 1
je 0x4616a4
sub eax, 1
mov ecx, ebx
mov eax, dword [ebp + 0x14]
je 0x461681
inc eax
add esi, eax
push esi
push 0x4c
pop edx
call fcn.00443369
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 8]
push esi
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + edx + 4]
call fcn.004546c5
pop ecx
mov edx, edi
mov ecx, ebx
call fcn.00443817
jmp 0x4616ee
push dword [ebp + 0x24]
inc eax
add eax, esi
push eax
push 0x4b
pop edx
call fcn.0044337d
pop ecx
pop ecx
jmp 0x4616f1
mov ecx, dword [ebp - 8]
call fcn.0045b9ff
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
jmp 0x4616a7
mov eax, dword [ebp - 0x14]
push dword [edx + ecx]
push dword [eax]
push str._s._s
push dword [ebp - 0x20]
call fcn.0042d86a
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x24]
inc ecx
add eax, ecx
mov ecx, ebx
push eax
push edi
push 0x513
push 0x36
pop edx
call fcn.004432f9
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00443a8c
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.004437ff
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
inc esi
add edx, 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
cmp esi, dword [ebp - 0x44]
jl 0x4615e5
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x4617eb
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
jne 0x4617eb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
inc eax
push 2
mov dword [edx + 0x38], eax
mov dl, byte [ebp + 0x20]
cmp dl, 0xa
movzx eax, dl
pop esi
cmovne esi, eax
and dword [ebp - 0x34], 0
cmp dword [ecx], 0
jle 0x4617eb
lea eax, [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x461770
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.0046152e
pop ecx
test eax, eax
jne 0x4617d0
mov ecx, ebx
call fcn.00443528
push 0x10
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
push dword [ebp - 8]
call fcn.004549d6
add esp, 0x10
cmp esi, 4
jne 0x46179c
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00443392
jmp 0x4617c6
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
jne 0x4617a7
mov eax, dword [edi]
push 2
pop ecx
push 3
cmp esi, 5
mov edx, 0x113
push 0
cmove esi, ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.0045ba0c
add esp, 0x10
mov edx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.0044356a
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
cmp edx, dword [ecx]
jl 0x461754
cmp byte [ebp + 0x1c], 0
je 0x461989
cmp dword [ebp - 0xc], 0
jne 0x461989
mov ecx, ebx
call fcn.00443528
mov dl, byte [ebp + 0x20]
movzx esi, byte [edi + 0x30]
mov dword [ebp - 0x34], eax
cmp dl, 0xa
je 0x46181a
movzx esi, dl
jmp 0x461823
push 2
cmp esi, 0xa
pop ecx
cmove esi, ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x46184b
push ecx
push eax
push dword [ebp + 0x14]
mov ecx, ebx
push 0x4e
pop edx
call fcn.004432f9
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.004437ff
mov dl, byte [ebp + 0x20]
cmp esi, 5
jne 0x46187d
cmp dl, 5
je 0x46187d
mov eax, dword [edi + 8]
jmp 0x46186a
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x461870
cmp cl, 3
je 0x461870
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x46185a
jmp 0x46187d
push 0xd
pop edx
mov ecx, ebx
call fcn.0044335b
mov dword [ebp - 0x38], eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push 0x20
pop edx
call fcn.004432f9
add esp, 0xc
test esi, esi
je 0x461953
cmp esi, 3
jbe 0x461958
cmp esi, 4
je 0x461947
cmp esi, 5
jne 0x461953
mov eax, dword [ebp - 0x20]
xor esi, esi
test dword [eax + 0x18], 0x40000
je 0x4618db
mov ecx, dword [ebp - 8]
mov edx, edi
push esi
push esi
push 0x6d
call fcn.0046cebe
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x461915
mov ecx, dword [ebp - 8]
mov edx, edi
push 0
push 0
call fcn.0045fe07
pop ecx
pop ecx
test eax, eax
jne 0x461915
cmp dword [edi + 8], eax
je 0x46193e
mov ecx, dword [ebp - 8]
call fcn.0045b9f2
mov ecx, dword [ebp - 8]
mov edx, edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045d0d6
add esp, 0x10
jmp 0x46193e
mov ecx, dword [ebp - 8]
call fcn.0045b9f2
mov ecx, dword [ebp - 8]
mov edx, edi
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0045ce6a
add esp, 0x24
mov dword [ebp - 0x3c], 1
jmp 0x461964
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00443392
jmp 0x461964
push 2
pop eax
mov esi, eax
mov ecx, dword [ebp - 8]
mov edx, esi
push edi
call fcn.0045bb1f
pop ecx
mov edx, dword [ebp - 0x34]
mov ecx, ebx
call fcn.0044356a
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x461989
push 0xd
pop edx
call fcn.0044335b
mov edx, esi
mov dword [ebp - 0x48], eax
mov ecx, ebx
call fcn.00443817
mov esi, dword [edi + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x44], esi
test esi, esi
je 0x461de2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
je 0x461dd0
mov eax, dword [ebp + 0x14]
inc eax
cmp byte [ebp - 1], 0
jne 0x4619c4
push eax
mov edx, edi
mov ecx, ebx
call fcn.0046051f
pop ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x10]
mov ecx, ebx
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00443528
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x18], eax
je 0x461a17
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
mov ecx, ebx
push 0
push 0x3b
pop edx
call fcn.0044337d
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, dword [ebp + 0x14]
inc ecx
push dword [ebp - 0x18]
mov dword [eax + 0x38], ecx
mov ecx, eax
mov edx, dword [esi + 0x24]
call fcn.00454eb7
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x461a1a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
and dword [ebp - 0x1c], 0
mov edx, dword [edx + eax*4]
lea eax, [edx + 1]
mov dword [ebp - 0x28], eax
movzx eax, word [esi + 0x34]
mov edi, eax
mov dword [ebp - 0x40], edi
xor edi, edi
cmp di, ax
mov edi, dword [ebp - 0x14]
jae 0x461ad1
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x1c]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x461a80
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x24]
inc eax
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x28]
mov eax, dword [ebp - 0x34]
mov edx, dword [edx + eax + 8]
call fcn.0045470d
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x461ab1
cmp edx, 0xffffffff
je 0x461a95
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x461a95
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x461a98
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x24]
sar edx, 0x1f
mov ecx, ebx
and edx, 1
push eax
add edx, 0x41
call fcn.0044337d
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
inc dword [ebp - 0x1c]
add dword [ebp - 0x34], 0x18
movzx edx, word [esi + 0x34]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x1c], edx
jl 0x461a4e
mov ecx, dword [ebp - 0x10]
mov eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + ecx*4]
jmp 0x461ad4
mov eax, dword [ebp - 0x40]
push edx
movzx eax, ax
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push 0x65
pop edx
call fcn.004432f9
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x461b0b
cmp ecx, esi
jne 0x461b0b
cmp byte [ebp + 0x1c], 0
jne 0x461b0b
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.0044356a
jmp 0x461dca
movzx eax, byte [esi + 0x36]
test eax, eax
je 0x461afc
mov dl, byte [ebp + 0x20]
cmp dl, 0xa
je 0x461b20
movzx eax, dl
jmp 0x461b29
push 2
cmp eax, 0xa
pop edx
cmove eax, edx
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
jne 0x461b85
cmp dword [esi + 0x14], 0
jne 0x461b85
cmp ecx, esi
jne 0x461b85
cmp eax, 5
jne 0x461b85
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x40000
je 0x461b67
mov ecx, dword [ebp - 8]
mov edx, edi
push 0
push 0
push 0x6d
call fcn.0046cebe
add esp, 0xc
test eax, eax
jne 0x461b85
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x80000
je 0x461afc
cmp dword [edi + 0x10], 0
jne 0x461b85
mov ecx, edi
call fcn.0045f70d
test eax, eax
je 0x461afc
movzx eax, word [esi + 0x32]
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push 0x1c
pop edx
call fcn.004434d9
mov edx, dword [ebp - 0xc]
add esp, 0x10
cmp esi, edx
jne 0x461bac
mov ecx, dword [ebp - 0x28]
jmp 0x461bbc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.0045560c
mov edx, dword [ebp - 0xc]
mov ecx, eax
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x24], ecx
jne 0x461bd1
mov eax, dword [ebp - 0x1c]
cmp eax, 5
jne 0x461d27
test byte [edi + 0x24], 0x20
jne 0x461c19
push ecx
push dword [ebp - 0x2c]
mov edx, 0x83
mov ecx, ebx
call fcn.0044337d
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
test eax, eax
je 0x461d24
push eax
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebp - 0x24]
push 0x4e
pop edx
call fcn.004432f9
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.004437ff
jmp 0x461d24
cmp esi, edx
je 0x461c62
and dword [ebp - 0x40], 0
xor eax, eax
cmp ax, word [edx + 0x32]
jae 0x461c62
mov edi, dword [ebp - 0x40]
lea eax, [ecx + edi]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov dx, word [eax + edi*2]
call fcn.00458449
cwde
mov ecx, ebx
push eax
push dword [ebp - 0x2c]
push 0x63
pop edx
call fcn.004432f9
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
inc edi
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x461c2c
mov edi, dword [ebp - 0x14]
cmp dword [ebp + 0x18], 0
je 0x461d24
movzx edx, word [edx + 0x32]
mov ecx, ebx
call fcn.004436d4
mov ecx, dword [esi + 0x38]
add eax, edx
and cl, 3
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
cmp cl, 2
mov dword [ebp - 0x40], 0x4d
cmove eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], ecx
test edx, edx
je 0x461d24
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, edi
call fcn.00458e0d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ecx + 4]
movsx ecx, word [ecx + edx*2]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x461cdf
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], 0x4e
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffd
push eax
mov eax, dword [ebp - 0x50]
inc ecx
add eax, edx
mov edx, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x4c]
add eax, ecx
mov ecx, ebx
push esi
push eax
call fcn.00443422
add esp, 0x14
mov edx, 0x90
mov ecx, ebx
call fcn.004437ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x461ca9
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x461d4f
cmp eax, 3
jbe 0x461d41
cmp eax, 4
jne 0x461d4f
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00443392
jmp 0x461daa
mov ecx, dword [ebp - 8]
mov edx, eax
push esi
call fcn.0045ba57
pop ecx
jmp 0x461daa
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.0045b9f2
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x40000
je 0x461d78
mov ecx, dword [ebp - 8]
push edx
push edx
push 0x6d
mov edx, edi
call fcn.0046cebe
add esp, 0xc
mov edx, eax
push dword [ebp - 0x2c]
cmp esi, dword [ebp - 0xc]
sete cl
movzx ecx, cl
push ecx
mov ecx, dword [ebp - 8]
push 5
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, edi
call fcn.0045ce6a
add esp, 0x24
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.0044356a
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x461dca
push dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.00455642
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14]
inc eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x4619a1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x461dfd
lea edx, [eax + 1]
mov ecx, ebx
call fcn.00443392
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.00443817
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret