Function at 0x403610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x691760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x6ce36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
mov dword [ebp - 4], 0
xor eax, eax
je 0x403658
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049caf0
jmp 0x4039b4
mov byte [ebp - 0x145], 0
mov dword [ebp - 0x150], 0
jmp 0x40367a
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0x30]
jge 0x40369e
mov eax, dword [ebp + 0x34]
add eax, dword [ebp - 0x150]
movzx ecx, byte [eax]
test ecx, ecx
je 0x40369c
mov byte [ebp - 0x145], 1
jmp 0x40366b
cmp dword [ebp + 0x30], 0
jle 0x4036c3
movzx edx, byte [ebp - 0x145]
test edx, edx
jne 0x4036c3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049caf0
jmp 0x4039b4
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
lea ecx, [ebp + 8]
call fcn.0049cd70
push eax
push 0x699770
lea eax, [ebp - 0x144]
push eax
call fcn.004cb929
add esp, 0xc
cmp dword [ebp + 0x38], 0xffffffff
jg 0x40375f
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x154], ecx
jmp 0x40371a
mov edx, dword [ebp - 0x154]
add edx, 1
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp + 0x2c]
jge 0x40374a
mov ecx, dword [ebp + 0x24]
add ecx, dword [ebp - 0x154]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x14c]
movzx ecx, byte [ebp + eax - 0x14]
add ecx, edx
mov edx, dword [ebp - 0x14c]
mov byte [ebp + edx - 0x14], cl
jmp 0x40370b
mov eax, dword [ebp + 0x3c]
add eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x14c]
mov dl, byte [ebp + ecx - 0x14]
mov byte [eax], dl
cmp dword [ebp + 0x30], 1
jl 0x4037ca
mov eax, dword [ebp + 0x34]
movzx ecx, byte [eax]
push ecx
call fcn.004cb465
add esp, 4
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x158], edx
jmp 0x40378e
mov eax, dword [ebp - 0x158]
add eax, 1
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
cmp ecx, dword [ebp + 0x2c]
jge 0x4037ca
mov edx, dword [ebp + 0x24]
add edx, dword [ebp - 0x158]
movzx ebx, byte [edx]
call fcn.004cb472
and eax, 0xff000
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
xor ebx, eax
mov eax, dword [ebp + 0x24]
add eax, dword [ebp - 0x158]
mov byte [eax], bl
jmp 0x40377f
cmp dword [ebp + 0x30], 2
jl 0x403836
mov ecx, dword [ebp + 0x34]
movzx edx, byte [ecx + 1]
push edx
call fcn.004cb465
add esp, 4
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x15c], eax
jmp 0x4037fa
mov ecx, dword [ebp - 0x15c]
add ecx, 2
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp + 0x2c]
jge 0x403836
mov eax, dword [ebp + 0x24]
add eax, dword [ebp - 0x15c]
movzx ebx, byte [eax]
call fcn.004cb472
and eax, 0xff000
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
xor ebx, eax
mov ecx, dword [ebp + 0x24]
add ecx, dword [ebp - 0x15c]
mov byte [ecx], bl
jmp 0x4037eb
cmp dword [ebp + 0x30], 3
jl 0x4038a2
mov edx, dword [ebp + 0x34]
movzx eax, byte [edx + 2]
push eax
call fcn.004cb465
add esp, 4
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x160], ecx
jmp 0x403866
mov edx, dword [ebp - 0x160]
add edx, 5
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp + 0x2c]
jge 0x4038a2
mov ecx, dword [ebp + 0x24]
add ecx, dword [ebp - 0x160]
movzx ebx, byte [ecx]
call fcn.004cb472
and eax, 0xff000
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
xor ebx, eax
mov edx, dword [ebp + 0x24]
add edx, dword [ebp - 0x160]
mov byte [edx], bl
jmp 0x403857
cmp dword [ebp + 0x38], 1
jl 0x4039a5
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x164], eax
jmp 0x4038d0
mov ecx, dword [ebp - 0x164]
add ecx, 1
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x164]
cmp edx, dword [ebp + 0x2c]
jge 0x403900
mov eax, dword [ebp + 0x24]
add eax, dword [ebp - 0x164]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x14c]
movzx eax, byte [ebp + edx - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x14c]
mov byte [ebp + ecx - 0x14], al
jmp 0x4038c1
mov edx, dword [ebp - 0x14c]
movzx eax, byte [ebp + edx - 0x14]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [ebp - 0x14c]
movzx edx, byte [ecx]
cmp eax, edx
je 0x4039a5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x168], esp
push 0x6997c0
call fcn.0049cab0
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x16c], esp
push 0x6997c1
call fcn.0049cab0
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], ecx
mov byte [ebp - 4], 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x170], esp
lea edx, [ebp - 0x144]
push edx
call fcn.0049cab0
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 0
call fcn.0040ffb0
add esp, 0x54
push 1
call fcn.004cbce7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049caf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cac87
mov esp, ebp
pop ebp
ret