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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xac]
cmp eax, dword [ecx + 8]
jbe 0x52106e
sub esp, 0x12c
mov byte [esp + 0x138], 0
mov eax, dword [esp + 0x130]
movzx ecx, byte [eax + 0x7f]
test cl, cl
jne 0x521062
mov ecx, dword [esp + 0x134]
cmp ecx, 0x77
jne 0x520bdd
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lea ebx, [0x5b6d80]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408520
mov eax, dword [esp + 0xc]
test eax, eax
je 0x521037
mov eax, dword [esp + 0x130]
movzx ecx, byte [eax + 0x80]
test cl, cl
je 0x52103e
mov ecx, 0x76
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
lea ebp, [0x5b6cc0]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00408520
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x520f6c
mov eax, dword [esp + 0x130]
movzx ecx, byte [eax + 0x2c]
test cl, cl
jne 0x520e39
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x71
jg 0x520c38
cmp ecx, 0x58
je 0x520c4b
cmp ecx, 0x71
je 0x520c4b
jmp 0x520e61
cmp ecx, 0x73
je 0x520c4b
cmp ecx, 0x76
je 0x520c4b
cmp ecx, 0x78
jne 0x520e61
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
test edx, edx
je 0x520e61
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x28], edx
lea eax, [0x5b6d80]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00408520
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x520d49
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc8], ecx
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x130]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
lea edi, [esp + 0xe8]
xor eax, eax
call fcn.0045222b
lea ecx, [0x5210f0]
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xf8], edx
lea ebx, [esp + 0xe8]
mov dword [esp + 0x60], ebx
lea ebx, [esp + 0x54]
mov dword [esp], ebx
call fcn.0042dab0
test eax, eax
jne 0x520d3d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xc8]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x130]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
call fcn.0051f830
call fcn.0042e080
add esp, 0x12c
ret
call fcn.0042e080
add esp, 0x12c
ret
lea eax, [0x5b6c60]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
call fcn.00408520
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x520e61
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc4], eax
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x130]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.0045222b
lea ecx, [0x521080]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xe4], edx
lea ebx, [esp + 0xd4]
mov dword [esp + 0x3c], ebx
lea ebx, [esp + 0x30]
mov dword [esp], ebx
call fcn.0042dab0
test eax, eax
jne 0x520e2d
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x130]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
call fcn.0051f830
call fcn.0042e080
add esp, 0x12c
ret
call fcn.0042e080
add esp, 0x12c
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lea ebx, [0x5b6d20]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408520
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x520e75
mov byte [esp + 0x138], 0
call fcn.0042e080
add esp, 0x12c
ret
mov dword [esp + 0x14], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x130]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xd0], edx
call fcn.00526200
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x110]
mov edx, eax
xor eax, eax
call fcn.00452229
lea eax, [0x521160]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x128], ecx
lea ecx, [esp + 0x110]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x78]
mov dword [esp], ecx
call fcn.0042dab0
test eax, eax
jne 0x520f60
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xc0]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x130]
add eax, 0x20
mov dword [esp], eax
call fcn.0051ce00
call fcn.0042e080
add esp, 0x12c
ret
call fcn.0042e080
add esp, 0x12c
ret
mov dword [esp + 0x20], eax
mov dword [esp + 0xcc], ecx
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x130]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.0045222b
lea ecx, [0x5211d0]
mov dword [esp + 0xfc], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10c], edx
lea ebx, [esp + 0xfc]
mov dword [esp + 0xa8], ebx
lea ebx, [esp + 0x9c]
mov dword [esp], ebx
call fcn.0042dab0
test eax, eax
jne 0x52102b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xcc]
mov dword [esp], ecx
lea ecx, [0x5fa514]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
call eax
call fcn.0042e080
add esp, 0x12c
ret
call fcn.0042e080
add esp, 0x12c
ret
mov eax, dword [esp + 0x130]
mov dword [esp], eax
mov dword [esp + 4], 0x77
call fcn.0051e9c0
mov byte [esp + 0x138], 1
call fcn.0042e080
add esp, 0x12c
ret
call fcn.0042e080
add esp, 0x12c
ret
call fcn.00450c10
jmp fcn.00520b50