Function at 0x402fb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610371
mov eax, dword fs:[0]
push eax
sub esp, 0xd80
mov eax, dword [0x6b1a94]
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 esi, ecx
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xd80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd88], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xd8c], eax
jne 0x403027
push 0x111c
lea ecx, [esi + 0x24]
push ecx
push edi
call fcn.005e2230
add esp, 0xc
jmp 0x403299
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403034
push eax
mov eax, dword [esi + 0x18]
call eax
push ebx
lea eax, [ebp - 0xd70]
mov dword [ebp - 0xd74], 0xd34
push 0x28
push eax
call fcn.005e52e7
push dword [ebp - 0xd80]
call fcn.005e66b8
push 0
mov dword [ebp - 0xd20], eax
call fcn.005e678b
push dword [ebp - 0xd84]
mov dword [ebp - 0xd1c], eax
lea eax, [ebp - 0xd14]
push 0x28
push eax
mov dword [ebp - 0xd18], edx
call fcn.005e52e7
push dword [ebp - 0xd88]
lea eax, [ebp - 0xcc4]
push 0x28
push eax
call fcn.005e52e7
mov edx, dword [ebp - 0xd8c]
lea ecx, [ebp - 0xd7c]
add esp, 0x2c
call fcn.0046cfa0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd7c]
cmp dword [eax - 4], 1
jle 0x4030d4
push dword [eax - 0xc]
lea ecx, [ebp - 0xd7c]
call fcn.004032f0
mov eax, dword [ebp - 0xd7c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [eax], 0
jne 0x4030ef
xor edx, edx
jmp 0x4030fd
mov edx, eax
lea ebx, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4030f4
sub edx, ebx
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403be0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0046b640
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x403122
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0xd78]
call fcn.0046cb00
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x403144
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403ac0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40316f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403ac0
mov eax, dword [ebp - 0xd78]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [eax - 4], 1
jle 0x4031a1
push dword [eax - 0xc]
lea ecx, [ebp - 0xd78]
call fcn.00403630
mov eax, dword [ebp - 0xd78]
push eax
lea eax, [ebp - 0xc74]
push 0x190
push eax
call fcn.005e52e7
push 0x111c
lea ebx, [esi + 0x24]
push 0
push ebx
call fcn.005e27b0
add esp, 0x18
lea eax, [ebp - 0xd74]
push 0x402f10
push ebx
push eax
mov eax, dword [esi + 0x10]
call eax
mov dword [esi + 0x20], eax
call fcn.00403fe0
mov ecx, eax
test ecx, ecx
jne 0x4031f0
push 0x80004005
call fcn.00403d40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd80], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd80]
push dword [esi + 0x2c]
push dword [esi + 0x20]
push str._DEBUG360__Pay._dwTicket:_d__nErrno:_d_n
push eax
call fcn.00403390
mov esi, dword [ebp - 0xd80]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403247
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x111c
push ebx
push edi
call fcn.005e2230
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0xd78]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403277
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xd7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x403299
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.005c8db3
mov esp, ebp
pop ebp
ret 0x18