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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9218
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x522f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f879
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f8a6
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f8d3
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
mov ebx, eax
test eax, eax
jne 0x46f8f9
push 0x80070057
call fcn.00422000
lea ecx, [ebp + 0x14]
push ecx
push eax
call fcn.004b8115
mov esi, eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
add esp, 8
or eax, ecx
jge 0x46f925
push esi
lea ecx, [ebp - 0x14]
call fcn.00422524
mov edi, dword [ebp - 0x14]
lea edx, [ebp + 0x14]
push edx
push ebx
lea eax, [esi + 1]
push eax
push edi
call fcn.004b8375
add esp, 0x10
test esi, esi
jl 0x46f8ef
cmp esi, dword [edi - 8]
jg 0x46f8ef
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov dword [edi - 0xc], esi
push edx
mov word [edi + esi*2], cx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp - 0x32]
movzx edx, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x36]
push ecx
movzx ecx, word [ebp - 0x3a]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp + 8]
push eax
push edx
lea eax, [ebp - 0x18]
push str._d____d____02d__02d__02d:_02d:_02d__dms_:
push eax
call fcn.0042261a
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0042c68a
add esp, 0x34
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00424f1e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f9d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00425484
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00468c60
push 0x4ed92c
call fcn.004b8a1a
add esp, 8
push eax
push 0x4ed92c
lea ecx, [ebp - 0x14]
call fcn.00425b88
mov ecx, dword [0x528f18]
cmp dword [ecx - 0xc], 0
jne 0x46fa6b
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46fa39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
jmp 0x46fc5a
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ecx
mov esi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x28], esi
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46fa98
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4e8fa8
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x46fad1
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b2260
test eax, eax
je 0x46faeb
push edi
push eax
mov ecx, esi
call fcn.00424e90
jmp 0x46faeb
push 0x4e8fa8
call fcn.004b8a1a
add esp, 4
push eax
push 0x4e8fa8
mov ecx, esi
call fcn.00425413
push ecx
mov byte [ebp - 4], 7
mov esi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x2c], esi
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46fb12
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.Log.log
mov byte [ebp - 4], 8
test ecx, 0xffff0000
jne 0x46fb4b
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b2260
test eax, eax
je 0x46fb65
push edi
push eax
mov ecx, esi
call fcn.00424e90
jmp 0x46fb65
push str.Log.log
call fcn.004b8a1a
add esp, 4
push eax
push str.Log.log
mov ecx, esi
call fcn.00425413
mov byte [ebp - 4], 9
mov eax, dword [0x528f18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
call fcn.00425484
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0046a3b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.00424f1e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fbc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x1c]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46fc10
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx - 0xc]
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [eax + eax]
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fc33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fc53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fc73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fc96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fcbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret