Function at 0x412820
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4df8f7
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi]
test eax, eax
je 0x41288a
xor esi, esi
cmp dword [eax], esi
je 0x412880
xor ecx, ecx
mov eax, dword [edi]
push dword [ecx + eax]
call fcn.0046d2f0
mov eax, dword [edi]
lea esi, [esi + 1]
lea ecx, [esi*4]
add esp, 4
cmp dword [ecx + eax], 0
jne 0x412861
push dword [edi]
call fcn.0046d2f0
add esp, 4
push dword [edi + 4]
call fcn.0046d2f0
mov eax, 0x51a640
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x4bc], 0
mov dword [esp + 0x24], 0x4ed20c
mov ecx, dword [esp + 0x4c4]
xor bl, bl
xor ebp, ebp
mov byte [esp + 0x4bc], 1
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
test edx, edx
jle 0x4129df
mov edi, dword [esp + 0x4c4]
jmp 0x4128e0
mov eax, dword [ecx + 0xc]
lea esi, [ebp*2]
add eax, esi
mov si, word [eax + ecx]
mov word [esp + 0x20], si
cmp si, 0x25
jne 0x412968
test bl, bl
jne 0x412968
lea eax, [ebp + 1]
cmp eax, edx
jge 0x412968
mov eax, dword [ecx + 0xc]
lea eax, [eax + ebp*2]
cmp word [eax + ecx + 2], 0x7b
jne 0x412968
mov eax, dword [esp + 0x24]
cmp dword [eax + 4], 0
je 0x412966
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401af0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x4ed20c
je 0x412966
mov dword [esp + 0x24], 0x4ed20c
mov eax, dword [ecx]
test eax, eax
je 0x412959
cmp eax, 0xffffffff
je 0x412966
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x412966
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
mov bl, 1
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.00417f90
cmp si, 0x7d
jne 0x4129c9
test bl, bl
je 0x4129c9
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401af0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x4ed20c
je 0x4129c7
mov dword [esp + 0x24], 0x4ed20c
mov eax, dword [ecx]
test eax, eax
je 0x4129ba
cmp eax, 0xffffffff
je 0x4129c7
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4129c7
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
xor bl, bl
mov ecx, dword [edi]
inc ebp
mov edx, dword [ecx + 4]
cmp ebp, edx
jl 0x4128e0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 4], 0
je 0x4129fb
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401af0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa4], 0x100
mov ecx, dword [eax + 0xc]
mov ebp, 4
sub ecx, dword [eax + 8]
mov byte [esp + 0x4bc], 2
lea eax, [ecx + 1]
xor ecx, ecx
mul ebp
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c04b2
mov ecx, dword [esp + 0x2c]
xor bl, bl
mov dword [edi + 4], eax
add esp, 4
mov byte [esp + 0x17], bl
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 8]
mov dword [eax + edx*4], 0
mov dword [esp + 0x2c], 0x4ed20c
mov eax, dword [esp + 0x28]
xor esi, esi
mov byte [esp + 0x4bc], 3
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
test ecx, ecx
jle 0x41310d
lea ebp, [esi + 1]
lea ebx, [ebx]
mov ecx, dword [eax + 8]
add ecx, esi
mov eax, dword [eax + ecx*4 + 0x10]
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x412aae
cmp ecx, 0xffffffff
je 0x412aae
mov ecx, ebp
lock xadd dword [eax], ecx
push 1
push 0x4ecf68
push 2
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c8], 4
call fcn.0041d3c0
test al, al
je 0x412f8d
push 1
push ecx
mov eax, esp
mov ecx, 0x7d
mov word [eax], cx
lea ecx, [esp + 0x20]
call fcn.00419c00
test al, al
je 0x412f8d
push str._type
push 7
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412b11
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._type
jmp 0x413046
push str._category
push 0xb
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412b34
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._category
jmp 0x413046
push str._message
push 0xa
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412b57
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._message
jmp 0x413046
push str._file
push 7
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412b7a
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._file
jmp 0x413046
push str._line
push 7
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412b9d
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._line
jmp 0x413046
push str._function
push 0xb
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412bc0
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._function
jmp 0x413046
push str._pid
push 6
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412be3
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._pid
jmp 0x413046
push str._appname
push 0xa
lea ecx, [esp + 0x20]
call fcn.00417c30
test al, al
je 0x412c06
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._appname
jmp 0x413046
push str._threadid
lea ecx, [esp + 0xa0]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412c38
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._threadid
jmp 0x413046
push str._qthreadptr
lea ecx, [esp + 0x60]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412c67
mov eax, dword [edi + 4]
mov dword [eax + esi*4], str._qthreadptr
jmp 0x413046
push str._time
lea ecx, [esp + 0x50]
call fcn.004011c0
push 1
lea ecx, [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
call fcn.0041d3c0
test al, al
je 0x412ceb
mov eax, dword [edi + 4]
lea ecx, [esp + 0x18]
push 1
push 0
mov dword [eax + esi*4], str._time
mov eax, 0x20
mov word [esp + 0x48], ax
push dword [esp + 0x48]
call fcn.0041a560
test eax, eax
jle 0x413046
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
sub ecx, eax
inc eax
sub ecx, 2
push ecx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call fcn.0041ac80
mov edx, dword [edi + 8]
mov ecx, dword [eax]
mov dword [edi + 8], ecx
lea ecx, [esp + 0x44]
mov dword [eax], edx
call fcn.00467a00
jmp 0x413046
push str._backtrace
lea ecx, [esp + 0x70]
call fcn.004011c0
push 1
lea ecx, [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
call fcn.0041d3c0
test al, al
je 0x412d3b
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x23]
call fcn.00411320
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c0], 5
call fcn.00417e50
lea ecx, [esp + 0x3c]
call fcn.00467a00
jmp 0x413046
push str._if_category
lea ecx, [esp + 0x90]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412d7d
mov eax, dword [edi + 4]
cmp byte [esp + 0x17], 0
movzx ebx, bl
cmovne ebx, ebp
mov byte [esp + 0x17], 1
mov dword [eax + esi*4], str._if_category
jmp 0x413046
push str._if_debug
lea ecx, [esp + 0x80]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412dbf
mov eax, dword [edi + 4]
cmp byte [esp + 0x17], 0
movzx ebx, bl
cmovne ebx, ebp
mov byte [esp + 0x17], 1
mov dword [eax + esi*4], str._if_debug
jmp 0x413046
push str._if_info
lea ecx, [esp + 0x58]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412dfe
mov eax, dword [edi + 4]
cmp byte [esp + 0x17], 0
movzx ebx, bl
cmovne ebx, ebp
mov byte [esp + 0x17], 1
mov dword [eax + esi*4], str._if_info
jmp 0x413046
push str._if_warning
lea ecx, [esp + 0x68]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412e3d
mov eax, dword [edi + 4]
cmp byte [esp + 0x17], 0
movzx ebx, bl
cmovne ebx, ebp
mov byte [esp + 0x17], 1
mov dword [eax + esi*4], str._if_warning
jmp 0x413046
push str._if_critical
lea ecx, [esp + 0x78]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412e7c
mov eax, dword [edi + 4]
cmp byte [esp + 0x17], 0
movzx ebx, bl
cmovne ebx, ebp
mov byte [esp + 0x17], 1
mov dword [eax + esi*4], str._if_critical
jmp 0x413046
push str._if_fatal
lea ecx, [esp + 0x88]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
je 0x412ebe
mov eax, dword [edi + 4]
cmp byte [esp + 0x17], 0
movzx ebx, bl
cmovne ebx, ebp
mov byte [esp + 0x17], 1
mov dword [eax + esi*4], str._if_fatal
jmp 0x413046
push str._endif
lea ecx, [esp + 0x98]
call fcn.004011c0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.00417c30
test al, al
mov eax, dword [edi + 4]
je 0x412f29
cmp byte [esp + 0x17], 0
mov dword [eax + esi*4], str._endif
jne 0x412f1f
test bl, bl
jne 0x412f1f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x23]
call fcn.00411300
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c0], 6
call fcn.00417e50
lea ecx, [esp + 0x34]
call fcn.00467a00
mov byte [esp + 0x17], 0
jmp 0x413046
mov dword [eax + esi*4], 0x4ecdcf
lea ecx, [esp + 0x1f]
lea eax, [esp + 0x30]
push eax
call fcn.004112e0
push ecx
mov ecx, esp
mov byte [esp + 0x4c0], 7
mov edx, 0x20
push 0
mov word [ecx], dx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.00418090
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c0], 8
call fcn.00417e50
lea ecx, [esp + 0x38]
call fcn.00467a00
lea ecx, [esp + 0x30]
call fcn.00467a00
jmp 0x413046
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.004c04b2
add esp, 4
lea ecx, [esp + 0x18]
mov ebp, eax
lea eax, [esp + 0x20]
push eax
call fcn.0041e8b0
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push dword [ecx + 4]
mov eax, dword [edx + 0xc]
add eax, edx
push eax
push ebp
call fcn.004c3120
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x412fe7
cmp ecx, 0xffffffff
je 0x412ff4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x412ff4
mov eax, dword [esp + 0x20]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + ebp], 0
mov edx, dword [esp + 0xa8]
cmp edx, dword [esp + 0xa4]
jne 0x413027
lea eax, [edx + edx]
push eax
push edx
lea ecx, [esp + 0xac]
call fcn.00412770
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov ecx, edx
inc edx
mov dword [esp + 0xa8], edx
mov dword [eax + ecx*4], ebp
mov eax, dword [edi + 4]
mov dword [eax + esi*4], ebp
mov ebp, 1
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4bc], 3
mov ecx, dword [eax]
test ecx, ecx
je 0x41306f
cmp ecx, 0xffffffff
je 0x41307c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41307c
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x28]
inc esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp esi, ecx
jl 0x412a90
test bl, bl
je 0x4130ab
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x23]
call fcn.004112c0
mov byte [esp + 0x4bc], 9
jmp 0x4130c8
cmp byte [esp + 0x17], 0
je 0x413108
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x23]
call fcn.004112a0
mov byte [esp + 0x4bc], 0xa
push eax
lea ecx, [esp + 0x30]
call fcn.00417e50
mov eax, dword [esp + 0x20]
mov byte [esp + 0x4bc], 3
mov ecx, dword [eax]
test ecx, ecx
je 0x4130fb
cmp ecx, 0xffffffff
je 0x413108
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x413108
mov eax, dword [esp + 0x20]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ebp, 4
mov eax, dword [esp + 0x2c]
cmp dword [eax + 4], 0
je 0x4131ca
mov eax, dword [0x64c5c4]
test al, 1
jne 0x413148
or eax, 1
mov dword [0x64c5c4], eax
mov byte [esp + 0x4bc], 0xb
call fcn.00413480
mov byte [0x64c5c1], al
mov byte [esp + 0x4bc], 3
jmp 0x41314d
mov al, byte [0x64c5c1]
lea ecx, [esp + 0x2c]
test al, al
jne 0x413163
call fcn.0041de40
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4131ca
lea eax, [esp + 0x20]
push eax
call fcn.0041e8d0
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
add ecx, eax
push ecx
push 0x4ecf6c
call fcn.004c0ec2
add eax, 0x40
push eax
call fcn.004c0f9e
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x4131ac
cmp ecx, 0xffffffff
je 0x4131b9
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4131b9
mov eax, dword [esp + 0x20]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
call fcn.004c0ec2
add eax, 0x40
push eax
call fcn.004c2fe1
add esp, 4
mov eax, dword [esp + 0xa8]
xor ecx, ecx
inc eax
mul ebp
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c04b2
mov ecx, dword [esp + 0xac]
mov dword [edi], eax
mov dword [eax + ecx*4], 0
mov eax, dword [esp + 0xac]
shl eax, 2
push eax
push dword [esp + 0xb4]
push dword [edi]
call fcn.004c1c30
mov eax, dword [esp + 0x3c]
add esp, 0x10
mov ecx, dword [eax]
test ecx, ecx
je 0x413230
cmp ecx, 0xffffffff
je 0x41323d
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41323d
mov eax, dword [esp + 0x2c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x413258
push eax
call fcn.004c27d0
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x413279
cmp ecx, 0xffffffff
je 0x413286
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x413286
mov eax, dword [esp + 0x24]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov edi, dword [esp + 0x28]
mov dword [esp + 0x4bc], 0xffffffff
mov eax, dword [edi]
test eax, eax
je 0x4132b2
cmp eax, 0xffffffff
je 0x413302
or eax, 0xffffffff
lock xadd dword [edi], eax
setne al
test al, al
jne 0x413302
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 8]
add esi, 4
add ebx, 4
lea esi, [edi + esi*4]
lea ebx, [edi + ebx*4]
cmp ebx, esi
je 0x4132f9
mov ecx, dword [esi - 4]
sub esi, 4
mov eax, dword [ecx]
test eax, eax
je 0x4132e7
cmp eax, 0xffffffff
je 0x4132f5
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4132f5
push 4
push 2
push dword [esi]
call fcn.00413640
add esp, 0xc
cmp esi, ebx
jne 0x4132c8
push edi
call fcn.004bee90
add esp, 4
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 4