Function at 0x539804
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x53980c
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x539f70
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00538320
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 0
jne 0x53985e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00420b20
test eax, eax
jne 0x539854
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0053acf8
jmp 0x53985e
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0053acf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00420b20
sub eax, 1
jno 0x539873
call fcn.00404624
test eax, eax
jl 0x53998e
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00538470
mov edx, dword [eax + 0x18]
lea eax, [ebp - 0x14]
call fcn.0040572c
cmp dword [ebp - 0x14], 0
je 0x539982
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 1
jne 0x539945
mov edx, 0x539f84
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, 0x539f94
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, 0x539fa4
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, 0x539fb4
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, 0x539fc4
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, 0x539fe0
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00538470
add eax, 0x18
mov edx, 0x539fb4
call fcn.004056e8
jmp 0x539982
mov edx, 0x539ff4
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, 0x53a000
mov eax, dword [ebp - 0x14]
call fcn.0047ce3c
test al, al
jne 0x539982
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00538470
add eax, 0x18
mov edx, 0x539ff4
call fcn.004056e8
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x539886
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00420b20
test eax, eax
jle 0x5399ed
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x5399ed
mov edx, 0x539f84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047ce3c
test al, al
jne 0x5399ed
mov edx, 0x539fa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047ce3c
test al, al
jne 0x5399ed
mov edx, 0x539f94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047ce3c
test al, al
jne 0x5399ed
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00405694
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 1
jne 0x539a93
lea edx, [ebp - 0x18]
mov eax, dword [0x555244]
mov eax, dword [eax]
call fcn.0053595c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00405954
test eax, eax
jne 0x539a82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
cmp dword [eax + 0x2c], 1
jle 0x539a54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
cmp dword [eax + 0x20], 0
jle 0x539a42
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x53a00c
call fcn.004056e8
jmp 0x539a82
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x53a024
call fcn.004056e8
jmp 0x539a82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
cmp dword [eax + 0x20], 0
jle 0x539a72
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x53a00c
call fcn.004056e8
jmp 0x539a82
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x53a044
call fcn.004056e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 9]
lea edx, [ebp - 0xa]
mov eax, dword [ebp - 4]
call fcn.0053ad90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc0]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x539ad6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
call fcn.0052feb0
mov ecx, dword [ebp - 0x24]
mov edx, 0x53a058
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov al, byte [ebp - 0xa]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
mov cl, byte [ebp - 9]
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00530924
mov ecx, dword [ebp - 0x28]
mov edx, 0x53a068
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0052feb0
mov ecx, dword [ebp - 0x2c]
mov edx, 0x53a078
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.0052feb0
mov ecx, dword [ebp - 0x30]
mov edx, 0x53a084
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc5], 0
jne 0x539bb2
xor ecx, ecx
mov edx, 0x53a090
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
jmp 0x539bdd
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0052feb0
mov ecx, dword [ebp - 0x34]
mov edx, 0x53a090
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.00421420
mov ecx, dword [ebp - 0x38]
mov edx, 0x53a09c
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 1
jne 0x539d09
mov eax, dword [ebp - 4]
call fcn.005397a4
cmp al, 1
jne 0x539c2b
mov ecx, 0x53a0b0
mov edx, 0x53a0bc
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
jmp 0x539d2f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
mov edx, 0x53a0d4
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jbe 0x539c96
lea ecx, [ebp - 0x40]
mov edx, 0x53a0d4
mov eax, dword [ebp - 0x20]
call fcn.004b3288
push dword [ebp - 0x40]
push 0x53a0ec
push 0x53a0f8
push 0x53a104
push 0x53a110
mov eax, dword [ebp - 4]
push dword [eax + 0x3c]
push 0x53a124
lea eax, [ebp - 0x3c]
mov edx, 7
call fcn.00405a28
mov ecx, dword [ebp - 0x3c]
mov edx, 0x53a0d4
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00420b20
test eax, eax
jle 0x539ce2
lea ecx, [ebp - 0x48]
mov edx, 0x53a0d4
mov eax, dword [ebp - 0x20]
call fcn.004b3288
push dword [ebp - 0x48]
push 0x53a130
push dword [ebp - 0x18]
push 0x53a124
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00405a28
mov ecx, dword [ebp - 0x44]
mov edx, 0x53a0d4
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov ecx, 0x53a0b0
mov edx, 0x53a0bc
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
mov edx, 0x53a148
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
jmp 0x539d2f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
mov edx, 0x53a148
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
mov edx, 0x53a0d4
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
call fcn.0052dda0
mov ecx, dword [ebp - 0x4c]
mov edx, 0x53a16c
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
call fcn.0052feb0
mov ecx, dword [ebp - 0x50]
mov edx, 0x53a17c
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov al, byte [ebp - 0xa]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x54]
push eax
mov cl, byte [ebp - 9]
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.00530924
mov ecx, dword [ebp - 0x54]
mov edx, 0x53a190
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x58]
push eax
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0052efb8
mov ecx, dword [ebp - 0x58]
mov edx, 0x53a1a8
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x9c]
mov edx, 0x53a1cc
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
call fcn.0053ac48
test al, al
je 0x539e2f
mov eax, dword [0x47a4e4]
call fcn.00479490
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x5c]
xor edx, edx
mov eax, dword [0x47a4e4]
call fcn.0047992c
mov ecx, dword [ebp - 0x5c]
mov edx, 0x53a1e0
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
jmp 0x539e57
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
push dword [eax + 0x50]
lea ecx, [ebp - 0x60]
xor edx, edx
mov eax, dword [0x47a4e4]
call fcn.0047992c
mov ecx, dword [ebp - 0x60]
mov edx, 0x53a1e0
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x8c], 2
je 0x539e97
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0x8c]
add edx, 1
jno 0x539e7b
call fcn.00404624
mov eax, dword [0x47a4e4]
call fcn.004791dc
mov ecx, dword [ebp - 0x64]
mov edx, 0x53a1f0
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
jmp 0x539ebf
mov edx, 0x53a1f0
mov eax, dword [ebp - 0x20]
call fcn.004b3428
test eax, eax
jl 0x539ebf
mov edx, 0x53a1f0
mov eax, dword [ebp - 0x20]
call fcn.004b3428
mov edx, eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x539edc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.0053ae80
cmp dword [ebp - 0x68], 0
jne 0x539f25
lea ecx, [ebp - 0x6c]
mov edx, 0x53a204
mov eax, dword [ebp - 0x20]
call fcn.004b3288
cmp dword [ebp - 0x6c], 0
je 0x539f40
lea ecx, [ebp - 0x70]
mov edx, 0x53a204
mov eax, dword [ebp - 0x20]
call fcn.004b3288
mov ecx, dword [ebp - 0x70]
mov edx, 0x53a218
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
jmp 0x539f40
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0053ae80
mov ecx, dword [ebp - 0x74]
mov edx, 0x53a218
mov eax, dword [ebp - 0x20]
call fcn.004b34c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539f77
lea eax, [ebp - 0x74]
mov edx, 0x15
call fcn.004056b8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004056b8
lea eax, [ebp - 8]
call fcn.00405694
ret