Function at 0x477b60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov ecx, eax
mov dword [ebp - 0x30], edi
call fcn.00453870
movzx ecx, byte [ebx + 0x2e]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
js 0x477e21
imul eax, ecx, 0x50
lea ecx, [esi + 0x38]
lea esi, [ebx + 0x324]
add ecx, eax
add esi, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], esi
cmp byte [esi - 7], 0xa4
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
je 0x477cb8
xor eax, eax
cmp byte [ebx + 0x33], 2
mov dword [ebp - 0x14], eax
jne 0x477c7d
test dword [ecx + 0x24], 0x200
je 0x477c7d
mov eax, dword [ecx + 0x20]
test byte [eax + 0x38], 0x80
je 0x477c7d
movzx ecx, word [ecx + 0x1e]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x477c7d
mov eax, dword [eax + 8]
cmp word [eax + ecx*2], 0x24
jl 0x477c7d
mov eax, dword [ebp - 4]
and dword [ebp - 0x28], 0
mov eax, dword [eax + 0x2c]
lea edx, [eax + 1]
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x477c43
mov ebx, dword [ebp - 0x28]
lea eax, [ebx + edx]
mov ecx, edi
push eax
push ebx
push dword [esi - 0x2c]
push 0x63
pop edx
call fcn.004432f9
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [ebp - 0x14]
inc ebx
cmp ebx, ecx
jl 0x477c1a
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 4]
inc eax
push 0x1b
add eax, ecx
mov dword [edx + 0x2c], eax
cmp byte [esi - 7], 6
pop edx
push 0x18
pop eax
push ecx
push dword [ebp - 0x14]
cmove edx, eax
mov ecx, edi
push 0
push dword [esi - 0x2c]
call fcn.004434d9
push dword [esi]
mov ecx, edi
mov dword [ebp - 0x14], eax
push 1
push 0xd
pop edx
call fcn.0044337d
add esp, 0x18
mov edx, dword [esi - 0x1c]
mov ecx, edi
call fcn.0044356a
movzx eax, byte [esi - 6]
movzx edx, byte [esi - 7]
push eax
push dword [esi]
push dword [esi - 4]
call fcn.004432f9
movzx edx, byte [esi - 5]
add esp, 0xc
mov ecx, edi
call fcn.004437ff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x477cc2
mov edx, eax
call fcn.00443817
jmp 0x477cc2
mov edx, dword [esi - 0x1c]
mov ecx, edi
call fcn.0044356a
mov eax, dword [ebp - 0x18]
test dword [eax + 0x24], 0x800
je 0x477d36
cmp dword [esi + 4], 0
jle 0x477d36
mov edx, dword [esi - 0x24]
mov ecx, edi
call fcn.0044356a
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
imul ecx, edx, 0xc
add eax, 0xfffffff4
mov dword [ebp - 0x28], edx
add eax, ecx
mov dword [ebp - 0x2c], eax
test edx, edx
jle 0x477d36
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
mov ecx, edi
inc edx
call fcn.00443817
mov al, byte [ebx + 8]
cmp al, 0xa4
je 0x477d1d
push dword [ebx + 4]
movzx edx, al
mov ecx, edi
push dword [ebx]
call fcn.0044337d
pop ecx
pop ecx
mov edx, dword [ebx + 4]
mov ecx, edi
dec edx
call fcn.00443817
dec esi
sub ebx, 0xc
test esi, esi
jg 0x477cfa
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x10]
mov edx, dword [esi - 0x28]
mov ecx, edi
call fcn.0044356a
mov edx, dword [esi - 0x20]
test edx, edx
je 0x477d63
call fcn.00443392
mov edx, dword [esi - 0x20]
mov ecx, edi
call fcn.00443817
mov edx, dword [esi - 0x20]
mov ecx, edi
sub edx, 2
call fcn.00443817
cmp dword [esi - 0xc], 0
je 0x477d7e
push dword [esi - 0xc]
mov eax, dword [esi - 0x10]
mov ecx, edi
shr eax, 1
push eax
push 0x30
pop edx
call fcn.0044337d
pop ecx
pop ecx
cmp dword [esi - 0x34], 0
je 0x477e08
push dword [esi - 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, edi
push 0x2e
pop edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x18], eax
call fcn.00443369
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
pop ecx
test al, 0x40
jne 0x477dbc
mov eax, dword [ebp - 0xc]
mov ecx, edi
push dword [eax]
push 0x7e
pop edx
call fcn.00443369
mov eax, dword [ebp - 0x18]
pop ecx
test eax, 0x200
jne 0x477dd0
test eax, 0x2000
je 0x477dde
cmp dword [esi + 4], 0
je 0x477dde
push dword [esi - 0x2c]
mov ecx, edi
push 0x7e
pop edx
call fcn.00443369
pop ecx
cmp byte [esi - 7], 0x34
mov ecx, edi
mov edx, dword [esi - 0x18]
jne 0x477df9
push edx
push dword [esi - 4]
push 0xe
pop edx
call fcn.0044337d
pop ecx
pop ecx
jmp 0x477dfe
call fcn.00443392
mov edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00443817
mov eax, dword [ebp - 0x1c]
sub esi, 0x50
sub dword [ebp - 0xc], 0x50
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
test eax, eax
jns 0x477bb1
mov edx, dword [ebx + 0x24]
mov ecx, edi
call fcn.0044356a
and dword [ebp - 0x1c], 0
cmp byte [ebx + 0x2e], 0
jbe 0x477f5c
mov edx, dword [ebp - 8]
lea esi, [ebx + 0x330]
movzx eax, byte [esi - 0x14]
imul eax, eax, 0x50
test byte [eax + edx + 0x30], 0x10
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi]
je 0x477e75
mov ecx, dword [ebp - 4]
push 0
push dword [eax + edx + 0x28]
mov edx, dword [esi - 0x20]
push dword [esi - 0x3c]
call fcn.00473ab9
add esp, 0xc
jmp 0x477f43
test dword [ecx + 0x24], 0x240
je 0x477e83
mov eax, dword [ecx + 0x20]
jmp 0x477e93
test dword [ecx + 0x24], 0x2000
je 0x477f46
mov eax, dword [esi - 8]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x477f46
cmp byte [ebx + 0x31], 0
je 0x477eb1
mov eax, dword [eax + 0xc]
test byte [eax + 0x24], 0x20
je 0x477f46
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x45], 0
jne 0x477f46
mov ecx, edi
call fcn.004436d4
mov edx, dword [esi - 0x20]
mov dword [ebp - 0xc], eax
call fcn.00443adb
mov ecx, eax
mov eax, dword [ebp - 0xc]
cmp dword [esi - 0x20], eax
jge 0x477f43
sub eax, dword [esi - 0x20]
lea ebx, [ecx + 4]
mov dword [ebp - 0xc], eax
mov edi, eax
mov eax, dword [ebx]
cmp eax, dword [esi - 0x3c]
jne 0x477f35
mov al, byte [ebx - 4]
cmp al, 0x63
jne 0x477f1f
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx + 4]
test byte [eax + 0x24], 0x20
je 0x477f0d
mov ecx, eax
call fcn.00458431
mov eax, dword [eax + 4]
movsx edx, word [eax + edx*2]
mov ecx, dword [ebp - 0x20]
call fcn.00458449
cwde
test eax, eax
js 0x477f35
mov dword [ebx + 4], eax
jmp 0x477f30
cmp al, 0x7d
jne 0x477f2c
mov eax, dword [esi - 0x38]
mov byte [ebx - 4], 0x83
jmp 0x477f33
cmp al, 0x17
jne 0x477f35
mov eax, dword [esi - 0x38]
mov dword [ebx], eax
add ebx, 0x14
sub edi, 1
jne 0x477ee5
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add esi, 0x50
movzx eax, byte [ebx + 0x2e]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x477e42
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x88], eax
mov ecx, dword [ebp - 0x24]
call fcn.00474595
pop edi
pop esi
pop ebx
leave
ret