Function at 0x457f3d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push ebx
mov dword [ebp - 0x3c], ecx
setne byte [ebp - 1]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ecx
mov byte [ebp - 2], 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.0045eb3f
test byte [edi + 0x24], 0x20
mov ebx, eax
movsx edx, word [edi + 0x2a]
mov dword [ebp - 0x44], edx
jne 0x457f8d
and dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 1
jmp 0x457f9e
mov ecx, edi
call fcn.0044ee3e
mov dword [ebp - 0xc], eax
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x28], esi
test edx, edx
jle 0x4580c9
xor edx, edx
mov dword [ebp - 0x24], edx
movsx eax, word [edi + 0x28]
cmp esi, eax
je 0x4580b6
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x457fcd
cmp dword [eax + esi*4], 0
jl 0x4580b6
mov eax, dword [edi + 4]
movzx edi, byte [eax + edx + 0xc]
test edi, edi
je 0x4580b3
mov cl, byte [ebp + 0x20]
push 2
cmp cl, 0xa
je 0x457fed
movzx edi, cl
pop ecx
jmp 0x457ff4
cmp edi, 0xa
pop ecx
cmove edi, ecx
cmp edi, 5
jne 0x458001
cmp dword [eax + edx + 4], 0
cmove edi, ecx
mov eax, edi
dec eax
je 0x458060
dec eax
je 0x458058
dec eax
je 0x458060
dec eax
mov ecx, ebx
mov eax, dword [ebp + 0x14]
je 0x458045
inc eax
add esi, eax
push esi
push 0x4c
pop edx
call fcn.00439d7e
pop ecx
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x24]
push esi
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [edx + eax + 4]
call fcn.0044b0a0
pop ecx
mov edx, edi
mov ecx, ebx
call fcn.0043a243
jmp 0x4580ad
push dword [ebp + 0x24]
inc eax
add eax, esi
push eax
push 0x4b
pop edx
call fcn.00439d92
pop ecx
pop ecx
jmp 0x4580b0
mov ecx, dword [ebp - 8]
call fcn.004523a3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
push dword [eax + edx]
push dword [ecx]
push str._s._s
push dword [ebp - 0x20]
call fcn.004245bd
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x28]
inc ecx
add eax, ecx
mov ecx, ebx
push eax
push edi
push 0x513
push 0x36
pop edx
call fcn.00439d0e
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffff9
call fcn.0043a4c3
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.0043a22b
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
inc esi
add edx, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
cmp esi, dword [ebp - 0x44]
jl 0x457fb0
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x4581b2
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x200
jne 0x4581b2
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
cmp byte [ebp + 0x20], 0xa
push 2
mov dword [ecx + 0x38], eax
movzx eax, byte [ebp + 0x20]
pop esi
cmovne esi, eax
and dword [ebp - 0x34], 0
cmp dword [edx], 0
jle 0x4581ab
lea eax, [edx + 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 0x458130
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.00457ef0
pop ecx
test eax, eax
jne 0x458190
mov ecx, ebx
call fcn.00439f5e
push 0x10
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
push dword [ebp - 8]
call fcn.0044b39b
add esp, 0x10
cmp esi, 4
jne 0x45815c
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00439da7
jmp 0x458186
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
jne 0x458167
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.004523b0
add esp, 0x10
mov edx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.00439fa0
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 0x458114
mov eax, dword [ebp - 8]
and dword [eax + 0x38], 0
cmp byte [ebp + 0x1c], 0
je 0x458354
cmp dword [ebp - 0xc], 0
jne 0x458354
mov ecx, ebx
call fcn.00439f5e
mov cl, byte [ebp + 0x20]
movzx esi, byte [edi + 0x30]
mov dword [ebp - 0x34], eax
cmp cl, 0xa
je 0x4581e1
movzx esi, cl
jmp 0x4581ea
push 2
cmp esi, 0xa
pop edx
cmove esi, edx
cmp byte [ebp - 1], 0
je 0x458213
push dword [ebp + 0x18]
mov ecx, ebx
push eax
push dword [ebp + 0x14]
push 0x4e
pop edx
call fcn.00439d0e
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0043a22b
mov cl, byte [ebp + 0x20]
cmp esi, 5
jne 0x458245
cmp cl, 5
je 0x458245
mov eax, dword [edi + 8]
jmp 0x458232
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x458238
cmp cl, 3
je 0x458238
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x458222
jmp 0x458245
push 0xd
pop edx
mov ecx, ebx
call fcn.00439d70
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.00439d0e
add esp, 0xc
test esi, esi
jle 0x45831e
cmp esi, 3
jle 0x458323
cmp esi, 4
je 0x458312
cmp esi, 5
jne 0x45831e
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov esi, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
test dword [eax + 0x18], 0x2000
je 0x4582ab
push ecx
push ecx
push 0x6d
mov edx, edi
mov ecx, esi
call fcn.00463862
add esp, 0xc
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4582e0
xor ecx, ecx
push ecx
push ecx
mov edx, edi
mov ecx, esi
call fcn.004567ca
pop ecx
pop ecx
test eax, eax
jne 0x4582e0
cmp dword [edi + 8], eax
je 0x458309
mov ecx, esi
call fcn.00452396
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00453a9b
add esp, 0x10
jmp 0x458309
mov ecx, esi
call fcn.00452396
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
mov edx, edi
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call fcn.0045380a
add esp, 0x24
mov dword [ebp - 0x3c], 1
jmp 0x45832f
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00439da7
jmp 0x45832f
push 2
pop eax
mov esi, eax
mov ecx, dword [ebp - 8]
mov edx, esi
push edi
call fcn.004524df
pop ecx
mov edx, dword [ebp - 0x34]
mov ecx, ebx
call fcn.00439fa0
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x458354
push 0xd
pop edx
call fcn.00439d70
mov edx, esi
mov dword [ebp - 0x48], eax
mov ecx, ebx
call fcn.0043a243
mov esi, dword [edi + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x44], esi
test esi, esi
je 0x4587a1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
je 0x45878f
cmp byte [ebp - 2], 0
jne 0x458392
mov eax, dword [ebp + 0x14]
mov edx, edi
inc eax
mov ecx, ebx
push eax
call fcn.00456eef
mov eax, dword [ebp - 0x10]
pop ecx
mov byte [ebp - 2], 1
add eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.00439f5e
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x18], eax
je 0x4583e2
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.00439d92
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
add esp, 4
mov dword [ecx + 0x38], eax
push dword [ebp - 0x18]
mov edx, dword [esi + 0x24]
call fcn.0044b876
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x4583e5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
xor edx, edx
inc eax
mov dword [ebp - 0x34], edx
cmp di, word [esi + 0x34]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
jae 0x458489
and dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
movsx edx, word [eax + edx*2]
mov dword [ebp - 0x40], edx
cmp edx, 0xfffffffe
jne 0x458440
push dword [ebp - 0x24]
or eax, 0xffffffff
sub eax, dword [ebp + 0x14]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x28]
mov eax, dword [ebp - 0x1c]
mov edx, dword [edx + eax + 8]
call fcn.0044b0e8
pop ecx
mov ecx, dword [ebp - 8]
and dword [ecx + 0x38], 0
jmp 0x458473
cmp edx, 0xffffffff
je 0x458455
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x458455
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x458458
mov eax, dword [ebp + 0x14]
push dword [ebp - 0x24]
xor edx, edx
mov ecx, ebx
cmp dword [ebp - 0x40], edx
push eax
setl dl
add edx, 0x41
call fcn.00439d92
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x1c], 0x18
inc edx
movzx eax, word [esi + 0x34]
inc dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
cmp edx, eax
jl 0x45840c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movzx eax, word [esi + 0x34]
mov ecx, ebx
push eax
push dword [ebp - 0x28]
push 0x63
pop edx
call fcn.00439d0e
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x4584c9
cmp ecx, esi
jne 0x4584c9
cmp byte [ebp + 0x1c], 0
jne 0x4584c9
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00439fa0
jmp 0x458789
movzx eax, byte [esi + 0x36]
test eax, eax
je 0x4584ba
mov dl, byte [ebp + 0x20]
cmp dl, 0xa
je 0x4584de
movzx eax, dl
jmp 0x4584e7
push 2
cmp eax, 0xa
pop edx
cmove eax, edx
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
jne 0x458543
cmp dword [esi + 0x14], 0
jne 0x458543
cmp ecx, esi
jne 0x458543
cmp eax, 5
jne 0x458543
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
je 0x458525
mov ecx, dword [ebp - 8]
mov edx, edi
push 0
push 0
push 0x6d
call fcn.00463862
add esp, 0xc
test eax, eax
jne 0x458543
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x4000
je 0x4584ba
cmp dword [edi + 0x10], 0
jne 0x458543
mov ecx, edi
call fcn.004560c8
test eax, eax
je 0x4584ba
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.00439f0f
mov edx, dword [ebp - 0xc]
add esp, 0x10
cmp esi, edx
jne 0x45856a
mov ecx, dword [ebp - 0x28]
jmp 0x45857a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.0044c05d
mov edx, dword [ebp - 0xc]
mov ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x24], ecx
jne 0x45858f
mov eax, dword [ebp - 0x1c]
cmp eax, 5
jne 0x4586e6
test byte [edi + 0x24], 0x20
jne 0x4585d8
push ecx
push dword [ebp - 0x2c]
mov edx, 0x81
mov ecx, ebx
call fcn.00439d92
cmp byte [ebp - 1], 0
pop ecx
pop ecx
je 0x4586e3
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 0x4e
pop edx
call fcn.00439d0e
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0043a22b
jmp 0x4586e3
cmp esi, edx
je 0x458621
and dword [ebp - 0x40], 0
xor eax, eax
cmp ax, word [edx + 0x32]
jae 0x458621
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.0044ee56
cwde
mov ecx, ebx
push eax
push dword [ebp - 0x2c]
push 0x60
pop edx
call fcn.00439d0e
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
inc edi
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x4585eb
mov edi, dword [ebp - 0x14]
cmp byte [ebp - 1], 0
je 0x4586e3
movzx edx, word [edx + 0x32]
mov ecx, ebx
call fcn.0043a10e
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
jle 0x4586e3
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.0044f80d
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 0x45869e
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], 0x4e
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
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.00439e58
add esp, 0x14
mov edx, 0x90
mov ecx, ebx
call fcn.0043a22b
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 0x458668
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x45870e
cmp eax, 3
jle 0x458700
cmp eax, 4
jne 0x45870e
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.00439da7
jmp 0x458769
mov ecx, dword [ebp - 8]
mov edx, eax
push esi
call fcn.004523ff
pop ecx
jmp 0x458769
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.00452396
mov eax, dword [ebp - 0x20]
test dword [eax + 0x18], 0x2000
je 0x458737
mov ecx, dword [ebp - 8]
push edx
push edx
push 0x6d
mov edx, edi
call fcn.00463862
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.0045380a
add esp, 0x24
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00439fa0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x458789
push dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.0044c093
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 0x45836c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4587bc
lea edx, [eax + 1]
mov ecx, ebx
call fcn.00439da7
mov edx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.0043a243
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret