Function at 0x40d4f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x54c4
call fcn.004500c0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x54c0], eax
push ebx
push esi
push edi
mov edi, edx
test ecx, ecx
je case.0x40d614.3
mov edx, ecx
mov ecx, dword [0x468e34]
push 0x40c0f0
call fcn.004325d0
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x40d614.3
mov esi, edi
shr esi, 0x10
mov dword [esp + 0x10], esi
test esi, esi
je 0x40d600
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40d5e1
lea edx, [esp + 0x18]
push edx
lea edx, [ebx + 0x38]
call fcn.0040c850
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.0040c5a0
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 0x40d5e1
lea edx, [ebx + 0x38]
call fcn.0040c820
test al, al
je 0x40d5d7
mov ecx, ebx
call fcn.0040caa0
mov esi, eax
test esi, esi
jne 0x40d5a0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
mov esi, edi
test edi, edi
je case.0x40d614.3
mov ecx, dword [ebx + 8]
mov edx, esi
call fcn.0040d290
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
movzx eax, di
dec eax
cmp eax, 0x1f
ja case.0x40d614.3
movzx eax, byte [eax + 0x40d994]
jmp dword [eax*4 + 0x40d978]
mov ecx, dword [ebx + 0x34]
mov word [ebx + 0x20], 0x101
test ecx, ecx
je case.0x40d614.3
lea eax, [esp + 0x18]
lea edx, [ebx + 0x38]
push eax
call fcn.0040c850
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.0040c990
mov dword [ebx + 0x34], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x22], 0
je 0x40d6ad
mov byte [ebx + 0x23], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x2c], 0
je 0x40d6dd
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0x40047307
push dword [ebx + 4]
call dword [0x468794]
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
mov dword [esp + 0x10], eax
jmp 0x40d6e5
mov dword [esp + 0x10], 0
push 0
push 0x5000
lea eax, [esp + 0x4d0]
push eax
push dword [ebx + 4]
call dword [0x46893c]
mov edi, eax
test edi, edi
jns 0x40d717
call dword [0x4690f0]
mov esi, eax
cmp esi, 0x2733
je case.0x40d614.3
mov ecx, dword [ebx + 8]
test edi, edi
jns 0x40d73a
mov edx, esi
call fcn.0040d290
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
je 0x40d882
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.004339c8
mov esp, ebp
pop ebp
ret
push 1
push 0x5000
lea eax, [esp + 0x4d0]
push eax
push dword [ebx + 4]
call dword [0x46893c]
mov edx, eax
test edx, edx
jg 0x40d7b0
call dword [0x4690f0]
mov ecx, dword [ebx + 8]
mov edx, eax
call fcn.0040d290
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
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.004339c8
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
mov byte [ebx + 0x21], 1
call fcn.00432f60
mov edi, eax
mov ecx, ebx
add edi, dword [ebx + 0x28]
call fcn.0040d2f0
lea ecx, [ebx + 0xc]
call fcn.00432f60
mov edx, eax
add edx, dword [ebx + 0x28]
cmp edx, edi
jge case.0x40d614.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.004339c8
mov esp, ebp
pop ebp
ret
push 0
push 0x5000
lea eax, [esp + 0x4d0]
push eax
push dword [ebx + 4]
call dword [0x46893c]
mov esi, eax
test esi, esi
js 0x40d8a4
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
je 0x40d882
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.0x40d614.32
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
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.004339c8
mov esp, ebp
pop ebp
ret
call dword [0x4690f0]
cmp eax, 0x2733
je case.0x40d614.3
mov ecx, dword [ebx + 8]
mov edx, eax
call fcn.0040d290
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54c0]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [esp + 0x234]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.00434ed0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x234]
push eax
push dword [ebx + 4]
call dword [0x468934]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d91d
call dword [0x4690f0]
cmp eax, 0x2afa
je case.0x40d614.3
cmp word [esp + 0x230], 2
jne 0x40d941
cmp byte [ebx + 0x24], 0
je 0x40d941
push dword [esp + 0x234]
call fcn.0040c8c0
add esp, 4
test al, al
je 0x40d959
mov eax, dword [ebx + 8]
push esi
push 0x40c9f0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je case.0x40d614.3
push esi
call dword [0x468948]
mov ecx, dword [esp + 0x54cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret