Function at 0x41c397
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ecx]
mov dword [ebp - 0x30], eax
xor eax, eax
inc eax
mov dword [ebp - 8], ecx
mov byte [ebp - 0x38], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
inc eax
push ebx
mov dword [ebp + 0x10], eax
inc eax
mov ebx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], ebx
inc ebx
mov dword [ebp - 0xc], ebx
inc ebx
mov dword [ebp - 0x3c], ebx
inc ebx
mov dword [ebp - 0x48], ebx
inc ebx
mov dword [ebp - 0x44], ebx
inc ebx
cmp dword [ecx + 0x2c], ebx
mov eax, ebx
push esi
cmovg eax, dword [ecx + 0x2c]
mov esi, edx
push edi
mov dword [ebp - 0x4c], esi
mov dword [ecx + 0x2c], eax
call fcn.0042df3f
mov edi, eax
test edi, edi
je 0x41c850
test esi, esi
je 0x41c850
cmp dword [esi + 0x1c], 0
je 0x41c850
push 0
push dword [esi]
push 0x4a4e04
call fcn.00423d52
add esp, 0xc
test eax, eax
je 0x41c850
mov edx, dword [esi + 0x48]
mov ecx, dword [ebp - 0x30]
call fcn.0042bc8a
mov ecx, dword [ecx + 0x10]
mov edx, eax
add edx, edx
mov dword [ebp - 0x20], eax
push dword [ecx + edx*8]
mov ecx, dword [ebp - 8]
push 0
push dword [esi]
push 0x1c
pop edx
call fcn.0041d74f
add esp, 0xc
test eax, eax
jne 0x41c850
push dword [esi]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
push eax
push dword [esi + 0x1c]
call fcn.0041d7f8
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, eax
inc eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x14], eax
inc eax
push 0x68
cmp dword [ecx + 0x28], eax
push esi
cmovg eax, dword [ecx + 0x28]
push dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
call fcn.004261b5
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, edi
push dword [esi]
call fcn.004091b8
mov esi, dword [esi + 8]
pop ecx
jmp 0x41c7af
cmp dword [ebp + 8], 0
je 0x41c4af
cmp dword [ebp + 8], esi
jne 0x41c7ac
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp dword [esi + 0x24], ecx
movzx eax, al
cmove eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
test byte [ecx + 0x24], 0x20
je 0x41c4dd
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x41c4dd
movzx eax, word [esi + 0x32]
mov ecx, dword [ecx]
mov dword [ebp - 0x34], eax
jmp 0x41c4f0
test byte [esi + 0x38], 8
movzx eax, word [esi + 0x34]
mov ecx, dword [esi]
mov dword [ebp - 0x34], eax
je 0x41c4f0
movzx eax, word [esi + 0x32]
mov edx, dword [ebp - 0x48]
dec eax
push ecx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.004091b8
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add eax, ebx
push dword [ebp - 0x20]
cmp dword [ecx + 0x2c], eax
cmovg eax, dword [ecx + 0x2c]
mov dword [ecx + 0x2c], eax
mov ecx, edi
push dword [esi + 0x2c]
push dword [ebp - 0x14]
push 0x68
pop edx
call fcn.0040910e
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, esi
call fcn.004098f7
push dword [ebp - 0x40]
mov ecx, edi
push dword [ebp - 0x34]
push 0x38
pop edx
call fcn.00409192
mov eax, dword [ebp + 0x10]
mov ecx, edi
add eax, 2
push eax
movzx eax, word [esi + 0x32]
push eax
push 0x38
pop edx
call fcn.00409192
push 0xfffffffffffffff8
push 0x4a5db4
push dword [ebp + 0x10]
mov edx, 0xa2
mov ecx, edi
push dword [ebp - 0x40]
push 0
call fcn.00409258
add esp, 0x24
mov ecx, edi
push 2
pop edx
call fcn.0040962b
push dword [ebp - 0x14]
push 0x25
pop edx
call fcn.0040917e
pop ecx
push dword [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x50], eax
push 0
push 0x38
pop edx
call fcn.00409192
pop ecx
pop ecx
mov ecx, edi
call fcn.0040950e
cmp dword [ebp - 4], 0
mov dword [ebp - 0x34], eax
jle 0x41c710
call fcn.0040935e
mov ecx, dword [ebp - 4]
shl ecx, 2
push 0
push ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
call fcn.003f2627
mov dword [ebp - 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x41c7ac
push 0xd
pop edx
mov ecx, edi
call fcn.00409170
mov ecx, edi
call fcn.0040950e
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
inc ecx
cmp eax, ecx
jne 0x41c617
cmp word [esi + 0x32], cx
jne 0x41c617
cmp byte [esi + 0x36], 0
je 0x41c617
push dword [ebp - 0x28]
mov ecx, edi
push ebx
push 0x4c
pop edx
call fcn.00409192
mov eax, dword [ebp - 4]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test eax, eax
jle 0x41c694
mov edx, dword [esi + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 8]
call fcn.0041ec0d
push dword [ebp - 0x24]
mov ecx, edi
mov esi, eax
push dword [ebp - 0x10]
push 0x38
pop edx
call fcn.00409192
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x60
pop edx
call fcn.0040910e
add esp, 0x14
mov ecx, edi
push 0xfffffffffffffffe
push esi
mov esi, dword [ebp - 0x10]
lea eax, [esi + ebx]
push eax
push 0
push dword [ebp - 0xc]
push 0x4d
pop edx
call fcn.00409258
mov ecx, dword [ebp - 0x2c]
add esp, 0x14
mov edx, 0x80
mov dword [ecx + esi*4], eax
mov ecx, edi
call fcn.0040962b
mov eax, dword [ebp - 4]
mov ecx, esi
mov esi, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jl 0x41c620
push dword [ebp - 0x24]
mov ecx, edi
push eax
push 0x38
pop edx
call fcn.00409192
mov edx, dword [ebp - 0x28]
pop ecx
pop ecx
mov ecx, edi
call fcn.004091a7
mov edx, dword [ebp - 0x34]
mov ecx, edi
lea edx, [edx - 1]
call fcn.00409643
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], eax
jle 0x41c6fb
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov ecx, edi
call fcn.00409643
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + ebx]
push eax
push ecx
push dword [ebp - 0x14]
mov ecx, edi
push 0x60
pop edx
call fcn.0040910e
mov eax, dword [ebp - 0x10]
add esp, 0xc
inc eax
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x41c6c8
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.004093a0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.003f2404
push 0xfffffffffffffff8
push 0x4a966c
push dword [ebp - 0xc]
xor eax, eax
mov edx, 0xa2
push dword [ebp + 0x10]
inc eax
mov ecx, edi
push eax
call fcn.00409258
add esp, 0x14
mov ecx, edi
push 2
pop edx
call fcn.0040962b
push dword [ebp - 0x34]
push dword [ebp - 0x14]
push 7
pop edx
call fcn.00409192
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
push dword [ebp - 0x44]
push ecx
mov ecx, edi
call fcn.0041c368
push 0
push 0x4abcfc
push dword [ebp - 0xc]
mov ecx, edi
push 3
push dword [ebp - 0x3c]
push 0x63
pop edx
call fcn.00409258
add esp, 0x1c
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push 0x73
pop edx
call fcn.00409192
push dword [ebp - 0x1c]
mov ecx, edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 0x74
pop edx
call fcn.0040910e
add esp, 0x14
mov ecx, edi
push 8
pop edx
call fcn.0040962b
mov edx, dword [ebp - 0x50]
call fcn.00409643
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x41c4a0
cmp dword [ebp + 8], 0
jne 0x41c850
cmp byte [ebp - 0x38], 0
je 0x41c850
mov ebx, dword [ebp - 0x44]
mov ecx, edi
push ebx
push dword [ebp - 0x54]
push 0x64
pop edx
call fcn.00409192
push ebx
push 0x16
pop edx
mov ecx, edi
call fcn.0040917e
add esp, 0xc
mov ecx, edi
mov esi, eax
push dword [ebp - 0x48]
push 0
push 0x3b
pop edx
call fcn.00409192
mov ebx, dword [ebp - 0xc]
mov ecx, edi
push 0
push 0x4abcfc
push ebx
push 3
push dword [ebp - 0x3c]
push 0x63
pop edx
call fcn.00409258
add esp, 0x1c
mov ecx, edi
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push 0x73
pop edx
call fcn.00409192
push dword [ebp - 0x1c]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push 0x74
pop edx
call fcn.0040910e
add esp, 0x14
mov ecx, edi
push 8
pop edx
call fcn.0040962b
mov edx, esi
call fcn.00409643
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret