Function at 0x5313ac
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x168], ecx
cmp dword [ebp + 8], 0
jne 0x5313c8
xor eax, eax
jmp 0x531bd9
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x1a]
mov dword [ebp - 0x16c], ecx
fild dword [ebp - 0x16c]
push ecx
fstp dword [esp]
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x18]
mov dword [ebp - 0x170], eax
fild dword [ebp - 0x170]
push ecx
fstp dword [esp]
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xe]
mov dword [ebp - 0x174], edx
fild dword [ebp - 0x174]
push ecx
fstp dword [esp]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xc]
mov dword [ebp - 0x178], ecx
fild dword [ebp - 0x178]
push ecx
fstp dword [esp]
call fcn.005397eb
add esp, 0x10
fcomp dword [0x5af744]
fnstsw ax
test ah, 0x41
jne 0x531482
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x1a]
push eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xe]
push ecx
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xc]
push eax
push 0x5c549c
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00599938
add esp, 0x18
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x684bb0]
cmp dword [eax + 0x4c], 0
je 0x5315a5
mov ecx, dword [0x684bb0]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + 0x444]
push eax
mov ecx, dword [0x684bb0]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + 0x440]
push eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xe]
mov dword [ebp - 0x17c], edx
fild dword [ebp - 0x17c]
push ecx
fstp dword [esp]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xc]
mov dword [ebp - 0x180], ecx
fild dword [ebp - 0x180]
push ecx
fstp dword [esp]
call fcn.005397eb
add esp, 0x10
fcomp dword [0x5af744]
fnstsw ax
test ah, 0x41
je 0x53155b
mov edx, dword [0x684bb0]
mov eax, dword [edx + 0x4c]
mov ecx, dword [eax + 0x444]
push ecx
mov edx, dword [0x684bb0]
mov eax, dword [edx + 0x4c]
mov ecx, dword [eax + 0x440]
push ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x1a]
mov dword [ebp - 0x184], eax
fild dword [ebp - 0x184]
push ecx
fstp dword [esp]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x18]
mov dword [ebp - 0x188], edx
fild dword [ebp - 0x188]
push ecx
fstp dword [esp]
call fcn.005397eb
add esp, 0x10
fcomp dword [0x5af744]
fnstsw ax
test ah, 0x41
jne 0x5315a5
mov eax, dword [0x684bb0]
mov ecx, dword [eax + 0x4c]
fld dword [ecx + 0x444]
sub esp, 8
fstp qword [esp]
mov edx, dword [0x684bb0]
mov eax, dword [edx + 0x4c]
fld dword [eax + 0x440]
sub esp, 8
fstp qword [esp]
push 0x5c54c8
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00599938
add esp, 0x18
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x168]
movsx ecx, byte [eax + 0x1f9]
cmp ecx, 1
jne 0x5315c1
mov eax, 1
jmp 0x531bd9
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x5315da
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x1f0], 1
mov ecx, dword [ebp + 8]
fild dword [ecx + 0x10]
mov edx, dword [ebp - 0x168]
fstp dword [edx + 0x1d4]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jge 0x531605
mov ecx, dword [ebp - 0x168]
mov dword [ecx + 0x1d4], 0x3f800000
push 0x30
push 0
lea edx, [ebp - 0x34]
push edx
call fcn.005998e0
add esp, 0xc
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0x3c8]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x168]
fld dword [edx + 0x1e4]
fcomp qword [0x5ae5e0]
fnstsw ax
test ah, 0x41
jne 0x531655
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0x3c8]
add ecx, 1
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x168]
fld dword [eax + edx*8 + 0x244]
call fcn.00599ab0
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x168]
fld dword [edx + ecx*8 + 0x248]
call fcn.00599ab0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.005997d0
add esp, 4
test eax, eax
jne 0x5316ab
mov ecx, dword [ebp - 0x168]
mov byte [ecx + 0x1fa], 1
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xc]
cmp dword [ebp - 0x38], eax
jne 0x5316ea
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xe]
cmp dword [ebp - 0x3c], edx
jne 0x5316ea
mov eax, dword [ebp - 0x168]
movsx ecx, byte [eax + 0x1fa]
cmp ecx, 1
jne 0x531a60
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xc]
sub eax, dword [ebp - 0x38]
test eax, eax
jle 0x53170a
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xc]
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x18c], edx
jmp 0x53171c
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xc]
sub ecx, dword [ebp - 0x38]
neg ecx
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x18c], 0x21
jg 0x531760
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xe]
sub eax, dword [ebp - 0x3c]
test eax, eax
jle 0x531745
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xe]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x190], edx
jmp 0x531757
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xe]
sub ecx, dword [ebp - 0x3c]
neg ecx
mov dword [ebp - 0x190], ecx
cmp dword [ebp - 0x190], 0x21
jle 0x531774
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xe]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x1a]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14c], 0
mov ecx, dword [0x684bb0]
add ecx, 0x94
mov dword [ebp - 0x148], ecx
push 8
mov edx, dword [ebp - 0x148]
push edx
push 0xc
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0056009e
add esp, 0x20
lea edx, [ebp - 0x34]
push edx
call fcn.005997d0
add esp, 4
test eax, eax
jne 0x5317ef
mov eax, 1
jmp 0x531bd9
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x18]
cmp dword [ebp - 0x140], ecx
jne 0x5318a6
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x1a]
cmp dword [ebp - 4], eax
jne 0x5318a6
push 0x30
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x168]
add edx, 0x214
push edx
call fcn.00599ae0
add esp, 0xc
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x430], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x1a]
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x434], ecx
mov eax, dword [ebp - 0x168]
mov byte [eax + 0x73c], 0
mov ecx, dword [ebp - 0x168]
add ecx, 0x3c4
push ecx
mov edx, dword [ebp - 0x168]
add edx, 0x244
push edx
mov eax, dword [ebp - 0x168]
add eax, 0x214
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x168]
call fcn.0052a0d4
jmp 0x531a5b
cmp dword [0x684bb0], 0
je 0x531a5b
mov eax, dword [0x684bb0]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x24], 0x7530
jne 0x531a5b
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x4c]
cmp eax, dword [ebp - 0x168]
je 0x531a5b
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xe]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x18]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x1a]
mov dword [ebp - 4], ecx
mov edx, dword [0x684bb0]
add edx, 0x94
mov dword [ebp - 0x15c], edx
push 8
mov eax, dword [ebp - 0x15c]
push eax
push 0xc
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0056009e
add esp, 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.005997d0
add esp, 4
test eax, eax
je 0x531a5b
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp dword [ebp - 0x140], edx
jne 0x531a5b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x1a]
cmp dword [ebp - 4], ecx
jne 0x531a5b
push 0x30
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x168]
add eax, 0x214
push eax
call fcn.00599ae0
add esp, 0xc
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x18]
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x430], edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x1a]
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x434], edx
mov ecx, dword [ebp - 0x168]
mov byte [ecx + 0x73c], 0
mov edx, dword [ebp - 0x168]
add edx, 0x3c4
push edx
mov eax, dword [ebp - 0x168]
add eax, 0x244
push eax
mov ecx, dword [ebp - 0x168]
add ecx, 0x214
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x168]
call fcn.0052a0d4
mov ecx, dword [ebp - 0x168]
add ecx, 0x3c4
push ecx
mov edx, dword [ebp - 0x168]
add edx, 0x244
push edx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
mov ecx, dword [ebp - 0x168]
call fcn.0052a9a6
jmp 0x531b07
push 0x18
mov edx, dword [ebp + 8]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x168]
add eax, 0x214
push eax
call fcn.00599ae0
add esp, 0xc
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x18]
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x430], edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x1a]
mov eax, dword [ebp - 0x168]
mov dword [eax + 0x434], edx
mov ecx, dword [0x684bb0]
add ecx, 0x94
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x168]
mov byte [edx + 0x73c], 0
mov eax, dword [ebp - 0x168]
add eax, 0x3c4
push eax
mov ecx, dword [ebp - 0x168]
add ecx, 0x244
push ecx
mov edx, dword [ebp - 0x168]
add edx, 0x214
push edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xe]
push ecx
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x168]
call fcn.0052a0d4
mov ecx, dword [ebp - 0x168]
movsx edx, byte [ecx + 0x1fa]
test edx, edx
je 0x531b84
mov eax, dword [0x684bb0]
mov ecx, dword [ebp - 0x168]
cmp ecx, dword [eax + 0x4c]
jne 0x531b84
mov edx, dword [0x684bb0]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xc]
mov edx, dword [ebp - 0x164]
mov dword [edx + 0x287bc], ecx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xe]
mov edx, dword [ebp - 0x164]
mov dword [edx + 0x287c0], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov edx, dword [ebp - 0x164]
mov dword [edx + 0x287c4], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x1a]
mov edx, dword [ebp - 0x164]
mov dword [edx + 0x287c8], ecx
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 0x250]
push ecx
mov edx, dword [eax + 0x24c]
push edx
mov ecx, dword [ebp - 0x168]
call fcn.00529ec2
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x1d8], edx
mov eax, dword [0x9362cc]
mov edx, dword [eax]
mov ecx, dword [0x9362cc]
call dword [edx + 8]
mov ecx, dword [ebp - 0x168]
mov dword [ecx + 0x5b4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 4