Function at 0x504270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cfac
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x83c], ecx
xor edi, edi
push eax
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], edi
call fcn.00505c60
lea edx, [ebp - 0x824]
push edx
mov byte [ebp - 4], 1
call fcn.00503b80
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x504302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x434]
mov ebx, dword [eax]
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x82c], ebx
cmp ebx, eax
je 0x504821
mov esi, dword [ebx + 0xc]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x504347
cmp eax, dword [esi - 0x10]
jne 0x504347
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x50437f
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x50486b
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0055c641
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x820], edi
mov ecx, dword [ebx + 0x10]
push 0x59c92c
mov dword [ebp - 0x828], ecx
push 0x5a2aa0
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 2
call fcn.00505430
mov eax, dword [ebp - 0x83c]
mov edi, dword [ebp - 0x820]
test eax, eax
je 0x5043e1
push eax
push edi
call fcn.0055da99
add esp, 8
test eax, eax
je 0x5043e1
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x5047b6
mov ebx, dword [ebp + 0x10]
mov ecx, 0x59e270
mov eax, ebx
jmp 0x5043f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x504416
test dx, dx
je 0x504412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x504416
add eax, 4
add ecx, 4
test dx, dx
jne 0x5043f0
xor eax, eax
jmp 0x50441b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x50447f
lea eax, [ebx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x50447f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x504469
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x504469
push eax
call fcn.00505070
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x50445e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea edi, [ebx + 0x10]
mov dword [ebp - 0x820], edi
jmp 0x50447f
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x820]
call fcn.00505950
mov edi, dword [ebp - 0x820]
mov eax, dword [0x5ec59c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5ec59c
call edx
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov edx, dword [ebp - 0x834]
mov byte [ebp - 4], 3
test edx, edx
je 0x5044ce
test edx, 0xffff0000
jne 0x5044d2
movzx esi, dx
push 0
push esi
call fcn.004fe4c0
add esp, 8
test eax, eax
je 0x5044f3
push esi
push eax
lea ecx, [ebp - 0x81c]
call fcn.004ff490
jmp 0x5044f3
xor eax, eax
jmp 0x5044e6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5044d7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x81c]
call fcn.00505950
push 1
push 0x59c92c
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 4
call fcn.00505890
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x81c]
call fcn.00505890
mov eax, dword [ebp - 0x81c]
cmp dword [eax - 4], 1
jle 0x504534
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x81c]
call fcn.004ff2f0
mov esi, dword [ebp - 0x81c]
push esi
lea ecx, [ebp - 0x7e0]
push str.sAbsolutePath:___s__n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x7e0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x840], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x50458d
cmp eax, dword [esi]
jne 0x50458d
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x5045c8
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x50486b
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0055c641
add esp, 0x10
lea edx, [ebp - 0x824]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.00503e10
add esp, 8
mov edx, dword [ebp - 0x824]
xor eax, eax
mov word [ebp - 0x7fc], ax
mov eax, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x7e8], 7
mov dword [ebp - 0x7ec], 0
lea edi, [eax + 2]
jmp 0x504610
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x504610
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x7fc]
call fcn.00401c40
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x804], ebx
mov dword [ebp - 0x808], 0
mov word [ebp - 0x818], cx
mov eax, dword [ebp - 0x7fc]
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x7e8], edi
jae 0x504666
lea eax, [ebp - 0x7fc]
push eax
lea ecx, [ebp - 0x818]
call fcn.00401e40
lea edx, [ebp - 0x818]
push edx
mov byte [ebp - 4], 8
call fcn.0040f440
add esp, 4
cmp dword [ebp - 0x804], edi
jb 0x50469c
mov eax, dword [ebp - 0x818]
push eax
call fcn.0055ae44
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x804], ebx
mov dword [ebp - 0x808], 0
mov word [ebp - 0x818], cx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x7e8], edi
jb 0x5046d0
mov edx, dword [ebp - 0x7fc]
push edx
call fcn.0055ae44
add esp, 4
mov dword [ebp - 0x7e8], ebx
mov ebx, dword [ebp - 0x828]
xor eax, eax
mov dword [ebp - 0x7ec], 0
mov word [ebp - 0x7fc], ax
cmp dword [ebx + 8], eax
jne 0x504759
mov ecx, dword [ebp - 0x81c]
push 0x180
push 0x8302
push ecx
call fcn.005619ff
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x504870
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push edx
push eax
push edi
call fcn.0056192b
push edi
mov dword [ebp - 0x828], eax
call fcn.0056116a
mov ecx, dword [ebp - 0x828]
add esp, 0x10
cmp ecx, dword [ebx]
je 0x50474f
mov edx, dword [ebp - 0x81c]
push edx
call fcn.005610c3
add esp, 4
jmp 0x504759
mov dword [ebp - 0x830], 1
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50477f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50479c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5047c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x82c]
cmp byte [ebx + 0x15], 0
jne 0x50480f
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x15], 0
jne 0x5047ee
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x5047ea
nop
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x5047e0
mov ebx, ecx
jmp 0x504809
mov eax, dword [ebx + 4]
cmp byte [eax + 0x15], 0
jne 0x504807
cmp ebx, dword [eax + 8]
jne 0x504807
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x5047f7
mov ebx, eax
mov dword [ebp - 0x82c], ebx
mov ecx, dword [ebp - 0x838]
cmp ebx, dword [ecx + 0x434]
jne 0x50431e
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x504847
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 0xc
call fcn.004ff2e0
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x504896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5048bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5048e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x504908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x50484d