Function at 0x40d4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x54c4
call fcn.0044fd20
mov eax, dword [0x467004]
xor eax, esp
mov dword [esp + 0x54c0], eax
push ebx
push esi
push edi
mov edi, edx
test ecx, ecx
je case.0x40d5d4.3
mov edx, ecx
mov ecx, dword [0x468df4]
push 0x40c0b0
call fcn.00432320
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x40d5d4.3
mov esi, edi
shr esi, 0x10
mov dword [esp + 0x10], esi
test esi, esi
je 0x40d5c0
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40d5a1
lea edx, [esp + 0x18]
push edx
lea edx, [ebx + 0x38]
call fcn.0040c810
mov esi, eax
lea edi, [esp + 0x2b4]
mov ecx, 0x86
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.0040c560
mov ecx, dword [ebx + 8]
push esi
push eax
push dword [ebx + 0x40]
mov edx, dword [ecx]
lea eax, [esp + 0x2bc]
push eax
push 1
push ecx
mov eax, dword [edx]
call eax
add esp, 0x18
nop dword [eax]
mov ecx, dword [ebx + 0x34]
mov edi, esi
test ecx, ecx
je 0x40d5a1
lea edx, [ebx + 0x38]
call fcn.0040c7e0
test al, al
je 0x40d597
mov ecx, ebx
call fcn.0040ca60
mov esi, eax
test esi, esi
jne 0x40d560
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
mov esi, edi
test edi, edi
je case.0x40d5d4.3
mov ecx, dword [ebx + 8]
mov edx, esi
call fcn.0040d250
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
movzx eax, di
dec eax
cmp eax, 0x1f
ja case.0x40d5d4.3
movzx eax, byte [eax + 0x40d954]
jmp dword [eax*4 + 0x40d938]
mov ecx, dword [ebx + 0x34]
mov word [ebx + 0x20], 0x101
test ecx, ecx
je case.0x40d5d4.3
lea eax, [esp + 0x18]
lea edx, [ebx + 0x38]
push eax
call fcn.0040c810
add esp, 4
lea edi, [esp + 0x2b0]
mov esi, eax
lea edx, [esp + 0x2b0]
mov eax, dword [ebx + 8]
mov ecx, 0x86
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 0
push 0
push dword [ebx + 0x40]
push edx
push 2
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebx + 0x34]
add esp, 0x18
call fcn.0040c950
mov dword [ebx + 0x34], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x22], 0
je 0x40d66d
mov byte [ebx + 0x23], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x2c], 0
je 0x40d69d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0x40047307
push dword [ebx + 4]
call dword [0x468754]
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
mov dword [esp + 0x10], eax
jmp 0x40d6a5
mov dword [esp + 0x10], 0
push 0
push 0x5000
lea eax, [esp + 0x4d0]
push eax
push dword [ebx + 4]
call dword [0x4688fc]
mov edi, eax
test edi, edi
jns 0x40d6d7
call dword [0x4690b0]
mov esi, eax
cmp esi, 0x2733
je case.0x40d5d4.3
mov ecx, dword [ebx + 8]
test edi, edi
jns 0x40d6fa
mov edx, esi
call fcn.0040d250
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
je 0x40d842
mov eax, dword [eax + 8]
lea edx, [esp + 0x4c8]
push edi
push edx
push dword [esp + 0x18]
push ecx
call eax
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
push 1
push 0x5000
lea eax, [esp + 0x4d0]
push eax
push dword [ebx + 4]
call dword [0x4688fc]
mov edx, eax
test edx, edx
jg 0x40d770
call dword [0x4690b0]
mov ecx, dword [ebx + 8]
mov edx, eax
call fcn.0040d250
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push edx
lea edx, [esp + 0x4cc]
push edx
mov ecx, dword [eax]
push 2
push eax
mov eax, dword [ecx + 8]
call eax
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
mov byte [ebx + 0x21], 1
call fcn.00432cb0
mov edi, eax
mov ecx, ebx
add edi, dword [ebx + 0x28]
call fcn.0040d2b0
lea ecx, [ebx + 0xc]
call fcn.00432cb0
mov edx, eax
add edx, dword [ebx + 0x28]
cmp edx, edi
jge case.0x40d5d4.3
mov ecx, dword [ebx + 8]
push edx
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
push 0
push 0x5000
lea eax, [esp + 0x4d0]
push eax
push dword [ebx + 4]
call dword [0x4688fc]
mov esi, eax
test esi, esi
js 0x40d864
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
je 0x40d842
mov eax, dword [eax + 8]
lea edx, [esp + 0x4c8]
push esi
push edx
push 0
push ecx
call eax
add esp, 0x10
test esi, esi
jg case.0x40d5d4.32
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
push 0
push 0
push ecx
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
call dword [0x4690b0]
cmp eax, 0x2733
je case.0x40d5d4.3
mov ecx, dword [ebx + 8]
mov edx, eax
call fcn.0040d250
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [esp + 0x234]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.00434c20
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x234]
push eax
push dword [ebx + 4]
call dword [0x4688f4]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d8dd
call dword [0x4690b0]
cmp eax, 0x2afa
je case.0x40d5d4.3
cmp word [esp + 0x230], 2
jne 0x40d901
cmp byte [ebx + 0x24], 0
je 0x40d901
push dword [esp + 0x234]
call fcn.0040c880
add esp, 4
test al, al
je 0x40d919
mov eax, dword [ebx + 8]
push esi
push 0x40c9b0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je case.0x40d5d4.3
push esi
call dword [0x468908]
mov ecx, dword [esp + 0x54cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00433718
mov esp, ebp
pop ebp
ret