Function at 0x40c9e6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x10
call fcn.0041b769
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x531531
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
push 8
call fcn.0041b769
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x531497
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
push 1
mov eax, 0x5326ab
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
call fcn.0040cede
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ca7b
push ebx
call fcn.0041b763
add esp, 4
cmp dword [ebp + 8], 0
jne 0x40ca8f
mov eax, 0
jmp 0x40ce79
cmp dword [ebp + 8], 0xffffffff
jne 0x40caa1
mov eax, dword [0x703ea4]
mov dword [ebp + 8], eax
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x41c900
call fcn.0041b76f
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push 0x14
push 1
mov ebx, 0x41cc60
call fcn.0041b76f
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040acec
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40cb09
push ebx
call fcn.0041b763
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40cb19
push ebx
call fcn.0041b763
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cb2d
push ebx
call fcn.0041b763
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040d12f
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 2
push dword [ebp + 8]
call fcn.00402738
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jl 0x40cbde
mov ebx, dword [ebp - 0x10]
call fcn.00401037
mov eax, 0
cmp eax, ecx
jl 0x40cb9b
push 0x21b
push 0x4031b5f
push 1
call fcn.0041b775
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402345
push eax
push dword [ebp - 8]
push 0x1f0fff
lea eax, [ebp - 0x14]
push eax
call fcn.0040d153
test eax, eax
je 0x40cbd6
mov eax, dword [ebp - 0x14]
jmp 0x40ce79
pop ebx
pop ecx
pop edx
add ecx, 0xfffffffe
jmp 0x40cb66
add esp, 0xc
cmp dword [0x703ea8], 0
jne 0x40cc1a
mov eax, 0x5326e7
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040d239
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40cc12
push ebx
call fcn.0041b763
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [0x703ea8], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e148
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40ce6c
mov ebx, dword [ebp - 0x18]
call fcn.00401037
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40cc61
push 0x3bf
push 0x4031b5f
push 4
call fcn.0041b775
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40cc7e
push 0x3bf
push 0x4031b5f
push 1
call fcn.0041b775
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov al, byte [ebx]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [0x703ea8]
cmp dword [ebp - 0x24], eax
jne 0x40cd0b
mov ebx, dword [ebp - 0x18]
call fcn.00401037
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40cccd
push 0x3f0
push 0x4031b5f
push 4
call fcn.0041b775
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ccea
push 0x3f0
push 0x4031b5f
push 1
call fcn.0041b775
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x2c], ebx
mov eax, dword [0x703ea4]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], eax
je 0x40cd0b
mov eax, 1
jmp 0x40cd10
mov eax, 0
test eax, eax
je 0x40ce64
mov ebx, dword [ebp - 0x10]
call fcn.00401037
mov eax, 0
cmp eax, ecx
jl 0x40cd40
push 0x423
push 0x4031b5f
push 1
call fcn.0041b775
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x18]
call fcn.00401037
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40cd6f
push 0x423
push 0x4031b5f
push 4
call fcn.0041b775
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40cd8c
push 0x423
push 0x4031b5f
push 1
call fcn.0041b775
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402345
push eax
push dword [ebp - 8]
push 0x1f0fff
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d153
test eax, eax
je 0x40ce64
mov ebx, dword [ebp - 0x18]
call fcn.00401037
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40cdea
push 0x4b1
push 0x4031b5f
push 4
call fcn.0041b775
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ce07
push 0x4b1
push 0x4031b5f
push 1
call fcn.0041b775
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push 0xffffffff
mov ebx, dword [ebp - 0x20]
mov ax, word [ebx]
cwde
push eax
push dword [ebp - 0x1c]
call fcn.0040e545
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call fcn.0040e6f2
cmp dword [ebp + 8], eax
jne 0x40ce64
mov eax, dword [ebp - 0x14]
jmp 0x40ce79
pop eax
pop ebx
pop ecx
jmp 0x40cc2c
add esp, 0xc
mov eax, 0
jmp 0x40ce79
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ce8a
push ebx
call fcn.0041b763
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0041b763
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40ceb4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40ceb0
imul eax, dword [ebx]
jmp 0x40cea5
mov ecx, eax
test ecx, ecx
je 0x40cecf
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041b763
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40ceba
call fcn.0041b763
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4