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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x7c]
cmp eax, dword [ecx + 8]
jbe 0x5236d2
sub esp, 0xfc
mov eax, dword [esp + 0x11c]
cmp eax, 1
jle 0x5236b9
mov ecx, dword [esp + 0x10c]
mov ecx, dword [ecx]
test ecx, 1
je 0x522e05
mov ecx, dword [esp + 0x124]
cmp ecx, 1
je 0x522d9c
lea eax, [ecx + 0x1f]
shr eax, 5
mov dword [esp + 0x7c], eax
mov dword [esp], eax
call fcn.00520f90
mov eax, dword [esp + 4]
mov dword [esp + 0x9c], eax
mov ecx, dword [eax]
mov dword [esp + 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], ebx
lea edi, [esp + 0xbc]
mov ebp, eax
xor eax, eax
call fcn.0045f0b0
xor eax, eax
jmp 0x522e64
mov eax, dword [esp + 0x108]
cmp eax, 1
jl 0x522db8
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x108]
jmp 0x522ddf
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov eax, dword [esp + 0xc]
mov ecx, 1
mov dword [eax], 1
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], 1
mov dword [esp + 0x130], ecx
add esp, 0xfc
ret
mov eax, dword [esp + 0x100]
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], 0
mov eax, dword [esp + 0x108]
mov dword [esp + 0x130], eax
add esp, 0xfc
ret
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00520f90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x6c]
mov dword [esp + ecx*4 + 0xbc], eax
lea eax, [ecx + 1]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x9c]
cmp eax, 0x10
jl 0x522e33
mov ecx, dword [esp + 0xbc]
mov esi, dword [ecx + 8]
mov ecx, dword [ecx]
mov eax, ebp
mov ebp, dword [0xe6de14]
mov dword [esp + 0x54], ebp
mov edi, edx
mov edx, dword [0xe6de10]
cmp ebp, esi
jle 0x522f20
mov dword [esp + 0xa8], edx
cmp ebp, 1
jne 0x522ee1
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, 1
mov esi, 1
jmp 0x522f20
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 8], ecx
call fcn.00447490
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
cmp ebp, ebx
jg 0x522f2a
mov ebx, ebp
cmp ecx, edx
je 0x522f6a
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0xa4], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0045f7b0
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0xbc]
mov dword [edx + 4], ebp
mov dword [edx + 8], esi
mov ebx, dword [0xe996c0]
test ebx, ebx
jne 0x522f85
mov dword [edx], ecx
jmp 0x522f8e
mov edi, edx
mov eax, ecx
call fcn.0045efc0
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x114]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x124]
mov dword [esp + 0x18], ebx
call fcn.005216d0
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x523000
mov dword [edi], eax
jmp 0x523005
call fcn.0045efc0
mov eax, 2
jmp 0x523013
mov edx, dword [esp + 0x68]
lea eax, [edx + 2]
cmp eax, 0x10
jge 0x5231ca
mov dword [esp + 0x68], eax
mov ecx, dword [esp + eax*4 + 0xbc]
mov dword [esp + 0xb0], ecx
mov edx, eax
shr eax, 0x1f
add eax, edx
sar eax, 1
mov eax, dword [esp + eax*4 + 0xbc]
mov ebx, dword [esp + edx*4 + 0xc0]
mov dword [esp + 0xac], ebx
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0xb0]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0xe996c0]
test ebx, ebx
jne 0x52309f
mov dword [edi], eax
jmp 0x5230a4
call fcn.0045efc0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0xb0]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0xe996c0]
test ebx, ebx
jne 0x5230f2
mov dword [edi], eax
jmp 0x5230f7
call fcn.0045efc0
mov ebx, dword [esp + 0xac]
mov ebp, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x114]
mov dword [esp + 0x20], edx
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0xac]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0xe996c0]
test ebx, ebx
jne 0x52316a
mov dword [edi], eax
jmp 0x52316f
call fcn.0045efc0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0xac]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5231c0
mov dword [edi], eax
jmp 0x52300c
call fcn.0045efc0
jmp 0x52300c
mov edx, dword [esp + 0x124]
lea ecx, [edx - 1]
test ecx, 0x1f
je 0x5231e6
mov ebx, 1
shl ebx, cl
dec ebx
jmp 0x5231eb
mov ebx, 0xffffffff
mov ecx, dword [esp + 0x11c]
dec ecx
lea ebp, [edx - 2]
shr ebp, 5
cmp ebp, ecx
jge 0x523201
mov eax, ebp
jmp 0x523205
mov eax, ebp
mov ebp, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x58], ebx
nop
mov ecx, dword [esp + 0x108]
cmp ecx, 1
jl 0x523223
mov esi, dword [esp + 0x100]
jmp 0x523263
mov dword [esp + 0x64], ebp
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x124]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x64]
mov esi, eax
mov ecx, 1
mov eax, dword [esp + 0x7c]
mov dword [esi], 1
mov edi, dword [esp + 0x118]
mov dword [esp + 0x90], eax
xor eax, eax
mov byte [esp + 0x33], al
mov eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x90]
jmp 0x5232b5
dec ebp
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x78]
mov edx, dword [esp + 0x124]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
test ebp, ebp
jl 0x5232e7
mov edx, dword [edi + ebp*4]
cmp ebp, eax
jne 0x5232c2
and edx, ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
jmp 0x5234a9
mov dword [esp + 0x48], ecx
mov dword [esp + 0x98], esi
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x9c]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [edi + 8], edx
mov edx, dword [0xe996c0]
test edx, edx
jne 0x52331c
mov eax, dword [esp + 0xa0]
mov dword [edi], eax
jmp 0x523328
mov eax, dword [esp + 0xa0]
call fcn.0045efc0
lea eax, [0xe73600]
mov dword [esp], eax
lea ecx, [0x670ba0]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.00466510
xor eax, eax
jmp 0x523374
mov dword [esp + 0x60], eax
mov ecx, dword [esp + eax*4 + 0xbc]
lea edx, [0xe73600]
mov dword [esp], edx
lea ebx, [0x670ba0]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.00466510
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 0x10
jl 0x523348
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x40]
jmp 0x523387
dec ecx
test ecx, ecx
jle 0x523393
mov edx, dword [eax + ecx*4 - 4]
test edx, edx
je 0x523386
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x130], eax
add esp, 0xfc
ret
mov dword [esp + 0x78], eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0x70], ecx
shr edx, 0x1c
mov edx, dword [esp + edx*4 + 0xbc]
mov ebp, dword [edx]
mov edi, dword [edx + 4]
mov edx, dword [edx + 8]
mov ebx, dword [esp + 0xa0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov eax, dword [esp + 0x5c]
add eax, 4
mov edx, dword [esp + 0x50]
shl edx, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x118]
mov dword [esp + 0x5c], eax
mov ebp, 1
xchg ebp, eax
mov byte [esp + 0x33], al
xchg ebp, eax
mov edi, dword [esp + 0x70]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x7c]
mov ecx, ebx
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x118]
mov ebx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
cmp ebx, 0x20
jge 0x52328f
mov dword [esp + 0x50], edx
movzx eax, byte [esp + 0x33]
test al, al
jne 0x5234cc
mov eax, dword [esp + 0x78]
jmp 0x5233b3
mov dword [esp + 0x74], ecx
mov dword [esp + 0xb8], esi
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xa0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xa0], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.005216d0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
jmp 0x5233b3
lea eax, [0x63eda0]
mov dword [esp], eax
lea eax, [0x6d2990]
mov dword [esp + 4], eax
call fcn.00433470
nop
call fcn.0045dbb0
jmp fcn.00522d00