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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd248
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46b859
push 0x80004005
call fcn.00421000
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], 2
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46b886
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46b8b3
push 0x80004005
call fcn.00421000
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], 4
mov eax, dword [ebp + 0x10]
mov ebx, eax
test eax, eax
jne 0x46b8d9
push 0x80070057
call fcn.00421000
lea ecx, [ebp + 0x14]
push ecx
push eax
call fcn.004aafe9
mov edi, eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
add esp, 8
or eax, ecx
jge 0x46b905
push edi
lea ecx, [ebp - 0x14]
call fcn.0042151d
mov esi, dword [ebp - 0x14]
lea edx, [ebp + 0x14]
push edx
push ebx
lea eax, [edi + 1]
push eax
push esi
call fcn.004ab249
add esp, 0x10
test edi, edi
jl 0x46b8cf
cmp edi, dword [esi - 8]
jg 0x46b8cf
lea edx, [ebp - 0x44]
xor ecx, ecx
mov dword [esi - 0xc], edi
push edx
mov word [esi + edi*2], cx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp - 0x3a]
movzx edx, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3e]
push ecx
movzx ecx, word [ebp - 0x42]
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 - 0x1c]
push str._d____d____02d__02d__02d:_02d:_02d__dms_:
push eax
call fcn.00421632
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0042a90e
add esp, 0x34
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x46b9d8
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x46b9c8
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x46b9c8
push eax
call fcn.00423f84
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x46b9c0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x46b9d8
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423f13
mov esi, dword [ebp - 0x14]
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 0x46b9fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push esi
call fcn.00423f84
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00464750
push 0x4ddb98
call fcn.004ab8ea
add esp, 8
push eax
push 0x4ddb98
lea ecx, [ebp - 0x14]
call fcn.00424437
mov ecx, dword [0x50a12c]
cmp dword [ecx - 0xc], 0
jne 0x46ba93
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46ba61
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 0x46ba84
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 - 0x18]
add eax, 0xfffffff0
jmp 0x46be51
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ecx
mov ebx, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x30], ebx
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46bac0
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, 0x4d9c3c
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x46bbb9
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x46bbd3
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46bbd3
push esi
push eax
push edi
call fcn.004216fe
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46bbd3
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x46bb49
push esi
mov ecx, ebx
call fcn.0042151d
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x20], edx
cmp eax, 0xffffffff
jne 0x46bb63
push edi
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x46bcc0.1
movzx edx, byte [eax + 0x46bed8]
jmp dword [edx*4 + 0x46bec8]
call fcn.0049d763
test esi, esi
jl 0x46b8cf
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x46b8cf
mov edx, dword [ebp - 0x24]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x46bbd3
push 0x4d9c3c
call fcn.004ab8ea
add esp, 4
push eax
push 0x4d9c3c
mov ecx, ebx
call fcn.00423f13
push ecx
mov byte [ebp - 4], 7
mov ebx, esp
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x34], ebx
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46bbfa
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.Log.log
mov byte [ebp - 4], 8
test ecx, 0xffff0000
jne 0x46bcef
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x46bd09
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46bd09
push esi
push eax
push edi
call fcn.004216fe
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46bd09
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x46bc83
push esi
mov ecx, ebx
call fcn.0042151d
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x24], edx
cmp eax, 0xffffffff
jne 0x46bc9d
push edi
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x46bcc0.1
movzx edx, byte [eax + 0x46bf3c]
jmp dword [edx*4 + 0x46bf2c]
call fcn.0049d79b
test esi, esi
jl 0x46b8cf
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x46b8cf
mov edx, dword [ebp - 0x20]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x46bd09
push str.Log.log
call fcn.004ab8ea
add esp, 4
push eax
push str.Log.log
mov ecx, ebx
call fcn.00423f13
mov byte [ebp - 4], 9
mov eax, dword [0x50a12c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.00423f84
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00466550
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46bd90
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46bd83
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46bd83
push eax
call fcn.00423f84
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46bd7b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x46bd90
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00423f13
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bdb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x18]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46be04
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
push 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [eax + eax]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46be07
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46be2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46be4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46be6a
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 0x46be8d
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 0x46beb3
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