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

Disassembly:
push 0xffffffffffffffff
push 0x566d89
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [0x58dc68]
cmp dword [ebp + 0x168], 0x10
lea eax, [ebp + 0x154]
mov dword [esp + 0x1c], ebp
jb 0x5219c8
mov eax, dword [eax]
push 0x100
lea ecx, [esp + 0x78]
push ecx
push eax
mov eax, dword [ebp + 0x1f8]
call eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x58], 0x41f328
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
mov dword [esp + 0x180], 0
cmp esi, edi
je 0x521ebc
lea ebx, [ebp + 0x1a4]
add ebp, 0x16c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0
cmovae eax, dword [esp + 0x5c]
mov byte [eax], 0
test ebp, ebp
je 0x521a47
lea eax, [ebp + 4]
jmp 0x521a49
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
test ebx, ebx
je 0x521a60
lea eax, [ebx + 4]
jmp 0x521a62
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
test esi, esi
je 0x521a79
lea eax, [esi + 4]
jmp 0x521a7b
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
cmp dword [esp + 0x70], 0x10
lea ebx, [esp + 0x5c]
mov eax, dword [0x58dc68]
cmovae ebx, dword [esp + 0x5c]
push ebx
mov eax, dword [eax + 0x200]
call eax
cmp eax, 0xffffffff
je 0x521ab5
shr eax, 4
test al, 1
je 0x521d63
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0
cmovae eax, dword [esp + 0x5c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov byte [eax], 0
cmp byte [esp + 0x74], 0
jne 0x521aee
xor ecx, ecx
jmp 0x521afe
lea ecx, [esp + 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x521af5
sub ecx, edx
push ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x48]
call fcn.004422b0
mov dword [esp + 0x3c], 0x41f328
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x48]
mov byte [esp + 0x188], 3
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x521b3c
add eax, 4
jmp 0x521b3e
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
test esi, esi
je 0x521b55
lea eax, [esi + 4]
jmp 0x521b57
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x180], 0
mov dword [esp + 0x3c], 0x41f328
jb 0x521b88
push dword [esp + 0x40]
call fcn.00534995
add esp, 4
cmp dword [esp + 0x70], 0x10
lea ebx, [esp + 0x5c]
mov eax, dword [0x58dc68]
cmovae ebx, dword [esp + 0x5c]
push ebx
mov eax, dword [eax + 0x200]
call eax
cmp eax, 0xffffffff
je 0x521bb4
shr eax, 4
test al, 1
je 0x521e0e
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0
cmovae eax, dword [esp + 0x5c]
mov byte [eax], 0
test ebp, ebp
je 0x521bd6
lea eax, [ebp + 4]
jmp 0x521bd8
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
mov ebx, dword [esp + 0x1c]
add ebx, 0x188
je 0x521bf7
lea eax, [ebx + 4]
jmp 0x521bf9
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
test esi, esi
je 0x521c10
lea eax, [esi + 4]
jmp 0x521c12
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
cmp dword [esp + 0x70], 0x10
lea ebp, [esp + 0x5c]
mov eax, dword [0x58dc68]
cmovae ebp, dword [esp + 0x5c]
push ebp
mov eax, dword [eax + 0x200]
call eax
cmp eax, 0xffffffff
je 0x521c4c
shr eax, 4
test al, 1
je 0x521e82
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0
cmovae eax, dword [esp + 0x5c]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov byte [eax], 0
cmp byte [esp + 0x74], 0
jne 0x521c85
xor ecx, ecx
jmp 0x521c99
lea ecx, [esp + 0x74]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x521c90
sub ecx, edx
push ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2c]
call fcn.004422b0
mov dword [esp + 0x20], 0x41f328
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
mov byte [esp + 0x188], 6
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
test ebx, ebx
je 0x521cd3
lea eax, [ebx + 4]
jmp 0x521cd5
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
test esi, esi
je 0x521cec
lea eax, [esi + 4]
jmp 0x521cee
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00441ec0
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0x180], 0
mov dword [esp + 0x20], 0x41f328
jb 0x521d1f
push dword [esp + 0x24]
call fcn.00534995
add esp, 4
cmp dword [esp + 0x70], 0x10
lea ebx, [esp + 0x5c]
mov eax, dword [0x58dc68]
cmovae ebx, dword [esp + 0x5c]
push ebx
mov eax, dword [eax + 0x200]
call eax
cmp eax, 0xffffffff
je 0x521d4b
shr eax, 4
test al, 1
je 0x521e9f
add esi, 0x1c
cmp esi, edi
je 0x521ebc
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jmp 0x521a25
mov eax, dword [0x58dc7c]
test eax, eax
jne 0x521d9e
push 0x20
call fcn.00534944
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x180], 1
test eax, eax
je 0x521d8f
mov ecx, eax
call fcn.0043b060
jmp 0x521d91
xor eax, eax
mov byte [esp + 0x180], 0
mov dword [0x58dc7c], eax
mov dword [eax], 0x19
mov eax, dword [0x58dc7c]
test eax, eax
jne 0x521eaf
push 0x20
call fcn.00534944
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x180], 2
test eax, eax
je 0x521def
mov ecx, eax
call fcn.0043b060
push ebx
mov byte [esp + 0x184], 0
mov dword [0x58dc7c], eax
lea ecx, [eax + 4]
call fcn.004979a0
mov bl, 1
jmp 0x521ebe
xor eax, eax
push ebx
lea ecx, [eax + 4]
mov byte [esp + 0x184], 0
mov dword [0x58dc7c], eax
call fcn.004979a0
mov bl, 1
jmp 0x521ebe
mov eax, dword [0x58dc7c]
test eax, eax
jne 0x521e49
push 0x20
call fcn.00534944
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x180], 4
test eax, eax
je 0x521e3a
mov ecx, eax
call fcn.0043b060
jmp 0x521e3c
xor eax, eax
mov byte [esp + 0x180], 0
mov dword [0x58dc7c], eax
mov dword [eax], 0x19
mov eax, dword [0x58dc7c]
test eax, eax
jne 0x521eaf
push 0x20
call fcn.00534944
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x180], 5
test eax, eax
je 0x521def
mov ecx, eax
call fcn.0043b060
jmp 0x521df1
call fcn.0043f370
mov dword [eax], 0x19
call fcn.0043f370
push ebp
lea ecx, [eax + 4]
call fcn.004979a0
mov bl, 1
jmp 0x521ebe
call fcn.0043f370
mov dword [eax], 0x19
call fcn.0043f370
push ebx
lea ecx, [eax + 4]
call fcn.004979a0
mov bl, 1
jmp 0x521ebe
xor bl, bl
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x58], 0x41f328
jb 0x521ed9
push dword [esp + 0x5c]
call fcn.00534995
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00535482
add esp, 0x170
ret