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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [ebp + 0x28]
call fcn.005230a0
mov edx, dword [ebp + 0x20]
call fcn.005230b0
call fcn.005230c0
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x80], eax
call fcn.005230d0
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x78], eax
call fcn.005230e0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], ecx
mov dword [esp + 0x120], edx
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x110], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10c], edx
mov esi, dword [esp + 0x74]
mov dword [esp + 0x108], esi
mov edi, dword [esp + 0x10c]
mov edi, dword [edi]
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x114]
call fcn.005230f0
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x114]
mov dword [edi], 0
mov edi, dword [esp + 0x10c]
mov dword [edi], 0
mov edi, dword [esp + 0x124]
mov dword [edi], 0
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x130], edi
mov dword [esp + 0x84], 0x46e082bb
mov eax, dword [esp + 0x84]
mov ecx, eax
sub ecx, 0x7e1ab0da
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
jg 0x522df0
jmp 0x522c21
mov eax, dword [esp + 0x70]
sub eax, 0xa071f25b
mov dword [esp + 0x68], eax
jg 0x522c51
jmp 0x522c39
mov eax, dword [esp + 0x70]
sub eax, 0x8d4e46d8
mov dword [esp + 0x64], eax
je 0x52304a
jmp 0x522e08
mov eax, dword [esp + 0x70]
add eax, 0x44b7eb94
mov dword [esp + 0x60], eax
jg 0x522c82
jmp 0x522c6a
mov eax, dword [esp + 0x70]
sub eax, 0xa071f25c
mov dword [esp + 0x5c], eax
je 0x52303a
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0xd2bf20c6
mov dword [esp + 0x58], eax
jg 0x522cb2
jmp 0x522c9a
mov eax, dword [esp + 0x70]
sub eax, 0xbb48146d
mov dword [esp + 0x54], eax
je 0x522e59
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0xeb15f686
mov dword [esp + 0x50], eax
jg 0x522ce3
jmp 0x522cca
mov eax, dword [esp + 0x70]
add eax, 0x2d40df39
mov dword [esp + 0x4c], eax
je 0x522fd5
jmp 0x522e08
mov eax, dword [esp + 0x70]
add eax, 0xec17112b
mov dword [esp + 0x48], eax
jg 0x522d15
jmp 0x522cfc
mov eax, dword [esp + 0x70]
add eax, 0x14ea0979
mov dword [esp + 0x44], eax
je 0x522ed5
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0x5e3231ef
mov dword [esp + 0x40], eax
jg 0x522dd8
jmp 0x522d2d
mov eax, dword [esp + 0x70]
sub eax, 0x1b76d4de
mov dword [esp + 0x3c], eax
jg 0x522d5e
jmp 0x522d45
mov eax, dword [esp + 0x70]
add eax, 0xec17112a
mov dword [esp + 0x38], eax
je 0x522faf
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0x4080871d
mov dword [esp + 0x34], eax
jg 0x522d8f
jmp 0x522d76
mov eax, dword [esp + 0x70]
add eax, 0xe4892b21
mov dword [esp + 0x30], eax
je 0x522ef3
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0x4080871e
mov dword [esp + 0x2c], eax
je 0x522ff0
jmp 0x522da7
mov eax, dword [esp + 0x70]
add eax, 0xb91f7d45
mov dword [esp + 0x28], eax
je 0x522e0d
jmp 0x522dc0
mov eax, dword [esp + 0x70]
sub eax, 0x4c21cdae
mov dword [esp + 0x24], eax
je 0x523001
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0x5e3231f0
mov dword [esp + 0x20], eax
je 0x523059
jmp 0x522e08
mov eax, dword [esp + 0x70]
sub eax, 0x7e1ab0db
mov dword [esp + 0x1c], eax
je 0x522e3e
jmp 0x522e08
jmp 0x52308c
pushfd
xor eax, eax
add eax, 0x3aacf022
sub eax, 0x7f64dbb5
popfd
mov ecx, 0x7e1ab0db
mov edx, dword [esp + 0x130]
cmp edx, 5
cmovb eax, ecx
mov dword [esp + 0x84], eax
jmp 0x52308c
mov dword [esp + 0x12c], 6
mov dword [esp + 0x84], 0x8d4e46d8
jmp 0x52308c
lea eax, [esp + 0x98]
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x11c]
mov esi, dword [esp + 0x118]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.0052aa00
mov ecx, 0x1b76d4df
pushfd
xor edx, edx
add edx, 0x6238765c
sub edx, 0x77227fd5
popfd
mov dword [esp + 0x88], eax
cmp dword [esp + 0x88], 0
cmovne ecx, edx
mov dword [esp + 0x84], ecx
jmp 0x52308c
mov eax, dword [esp + 0x88]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x84], 0x8d4e46d8
jmp 0x52308c
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0xc0], ecx
mov dword [esp], eax
call fcn.00541480
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x114]
mov dword [edx], ecx
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x120]
mov esi, dword [esp + 0x114]
mov edi, dword [esp + 0x110]
mov ebx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call fcn.00516970
mov ecx, 0x4080871e
mov edx, 0x13e8eed6
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0x10c]
mov dword [esi], eax
cmp dword [esp + 0x94], 0
cmove ecx, edx
mov dword [esp + 0x84], ecx
jmp 0x52308c
mov eax, 0x4080871e
mov ecx, 0xd2bf20c7
mov edx, dword [esp + 0x124]
cmp dword [edx], 3
cmove eax, ecx
mov dword [esp + 0x84], eax
jmp 0x52308c
mov dword [esp + 0x94], 6
mov dword [esp + 0x84], 0x4080871e
jmp 0x52308c
mov eax, 0x4c21cdae
mov dword [esp + 0x84], eax
jmp 0x52308c
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x128]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004d1d00
mov eax, 0xa071f25c
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x84], eax
jmp 0x52308c
mov dword [esp + 0x84], 0x8d4e46d8
jmp 0x52308c
mov eax, dword [esp + 0x12c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x128]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004d1d00
mov eax, dword [esp + 0x94]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x84], 0x4c21cdae
jmp 0x522bff