Function at 0x418280
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6178d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x4185f3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x4185f3
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 0x1c], 1
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x4185f3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0
mov byte [ebp - 4], 3
call fcn.005ef5a2
push 0
call fcn.005ef5a2
add esp, 8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], edx
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movsd qword [ebp - 0x38], xmm0
push eax
call fcn.004181a0
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.00417e60
mov byte [ebp - 4], 4
lea ecx, [esi - 0x10]
mov edx, dword [eax]
or ebx, 0xffffffff
mov dword [ebp - 0x20], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x4183ba
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x4183ab
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4183ab
push dword [ebp - 0x18]
call fcn.004027b0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4183a3
mov esi, dword [ebp - 0x20]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x4183ba
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00402df0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4183d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x4183ec
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004030b0
mov esi, dword [ebp - 0x10]
push esi
lea eax, [ebp - 0x14]
push 0x6708e8
push eax
call fcn.004033d0
add esp, 0xc
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push dword [ebp + 0x10]
call fcn.004032c0
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004046d0
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x418486
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0xc]
jl 0x41847b
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41847b
push dword [ebp - 0x24]
call fcn.004027b0
mov dword [ebp - 0x24], eax
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418471
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [edi], eax
jmp 0x418486
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00402df0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4184a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x28], ecx
lea edx, [ecx + 1]
test edx, edx
js 0x4185e9
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4184d0
push edx
mov ecx, edi
call fcn.00403180
mov eax, dword [edi]
mov edx, 0xa
mov ecx, dword [ebp - 0x28]
mov word [eax + ecx*2], dx
lea edx, [ecx + 1]
mov eax, dword [edi]
cmp edx, dword [eax - 8]
jg 0x4185e9
mov dword [eax - 0xc], edx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + edx*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x418580
cmp dword [eax - 0xc], 0
je 0x418580
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea eax, [eax*2 + 1]
push eax
call fcn.00447f05
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ecx - 4], 1
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x28], edx
jle 0x418542
push edx
mov ecx, edi
call fcn.004030b0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
push edx
push dword [edi]
push eax
call fcn.005f9347
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
push 0x66ecf0
push dword [eax]
call fcn.005f219b
add esp, 0x14
mov dword [ebp - 0x24], eax
test eax, eax
je 0x418580
push eax
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
call fcn.005f2082
push dword [ebp - 0x24]
call fcn.005f1ddf
add esp, 0x14
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41859b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4185b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4185d5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403270
push 0x80004005
call fcn.00403270
int3