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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x78]
cmp eax, dword [ecx + 8]
jbe 0x538b88
sub esp, 0xf8
mov edx, dword [esp + 0x118]
cmp edx, 1
jle 0x538b6f
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jbe 0x538b66
mov eax, dword [esp + 0x108]
mov eax, dword [eax]
test eax, 1
je 0x538223
mov eax, dword [esp + 0x120]
cmp eax, 1
je 0x5381ba
lea ecx, [eax + 0x1f]
shr ecx, 5
mov dword [esp + 0x78], ecx
mov dword [esp], ecx
call fcn.00536290
mov eax, dword [esp + 4]
mov dword [esp + 0x98], eax
mov ecx, dword [eax]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], ebx
lea edi, [esp + 0xb8]
mov ebp, eax
xor eax, eax
call fcn.00464570
xor eax, eax
jmp 0x53826a
mov eax, dword [esp + 0x104]
cmp eax, 1
jl 0x5381d6
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x104]
jmp 0x5381fd
lea eax, [0x6985a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b070
mov eax, dword [esp + 0xc]
mov ecx, 1
mov dword [eax], 1
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 1
mov dword [esp + 0x12c], ecx
add esp, 0xf8
ret
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 0
mov eax, dword [esp + 0x104]
mov dword [esp + 0x12c], eax
add esp, 0xf8
ret
mov dword [esp + ecx*4 + 0xb8], eax
lea eax, [ecx + 1]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x98]
cmp eax, 0x10
jge 0x538291
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.00536290
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x68]
cmp ecx, 0x10
jb 0x538251
jmp 0x538b5a
mov ecx, dword [esp + 0xb8]
mov esi, dword [ecx + 8]
mov ecx, dword [ecx]
mov eax, ebp
mov ebp, dword [0x8c957c]
mov dword [esp + 0x54], ebp
mov edi, edx
mov edx, dword [0x8c9578]
cmp esi, ebp
jge 0x538348
mov dword [esp + 0xa4], edx
cmp ebp, 1
jne 0x538309
lea eax, [0x6985a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b070
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, 1
mov esi, 1
jmp 0x538348
lea eax, [0x6985a0]
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.0044b070
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
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 0x538352
mov ebx, ebp
cmp ecx, edx
je 0x538392
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0xa0], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.00464c70
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0xb8]
mov dword [edx + 4], ebp
mov dword [edx + 8], esi
mov ebx, dword [0x8f52e0]
test ebx, ebx
jne 0x5383ad
mov dword [edx], ecx
jmp 0x5383b6
mov edi, edx
mov eax, ecx
call fcn.004642e0
mov eax, dword [esp + 0xbc]
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 + 0x108]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x110]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x120]
mov dword [esp + 0x18], ebx
call fcn.00536aa0
mov edi, dword [esp + 0xbc]
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 [0x8f52e0]
test ecx, ecx
jne 0x538428
mov dword [edi], eax
jmp 0x53842d
call fcn.004642e0
mov eax, 2
jmp 0x53843b
mov edx, dword [esp + 0x74]
lea eax, [edx + 2]
cmp eax, 0x10
jge 0x538611
mov edx, eax
shr eax, 0x1f
add eax, edx
sar eax, 1
cmp eax, 0x10
jae 0x538b50
mov ebx, dword [esp + eax*4 + 0xb8]
cmp edx, 0x10
jae 0x538b44
mov ebp, dword [esp + edx*4 + 0xb8]
lea eax, [edx + 1]
cmp eax, 0x10
jae 0x538b3a
mov dword [esp + 0x74], edx
mov dword [esp + 0xac], ebp
mov eax, dword [esp + edx*4 + 0xbc]
mov dword [esp + 0xa8], eax
mov ecx, dword [ebp]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00535ac0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0xac]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0x8f52e0]
test ebx, ebx
jne 0x5384e6
mov dword [edi], eax
jmp 0x5384eb
call fcn.004642e0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
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 ebx, dword [0x8f52e0]
test ebx, ebx
jne 0x538539
mov dword [edi], eax
jmp 0x53853e
call fcn.004642e0
mov ebx, dword [esp + 0xa8]
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 + 0x108]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x110]
mov dword [esp + 0x20], edx
call fcn.005349f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0xa8]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0x8f52e0]
test ebx, ebx
jne 0x5385b1
mov dword [edi], eax
jmp 0x5385b6
call fcn.004642e0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0xa8]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x538607
mov dword [edi], eax
jmp 0x538434
call fcn.004642e0
jmp 0x538434
mov edx, dword [esp + 0x120]
lea ecx, [edx - 1]
test ecx, 0x1f
je 0x53862d
mov ebx, 1
shl ebx, cl
dec ebx
jmp 0x538632
mov ebx, 0xffffffff
mov ecx, dword [esp + 0x118]
lea ebp, [ecx - 1]
lea esi, [edx - 2]
shr esi, 5
cmp esi, ebp
jge 0x53864a
mov eax, esi
jmp 0x53864e
mov eax, esi
mov esi, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], ebx
nop
mov ebp, dword [esp + 0x104]
cmp ebp, 1
jl 0x53866c
mov edi, dword [esp + 0xfc]
jmp 0x5386b3
mov dword [esp + 0x64], esi
lea eax, [0x6985a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b070
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x120]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov edi, eax
mov ebp, 1
mov eax, dword [esp + 0x78]
mov dword [edi], 1
mov dword [esp + 0x8c], eax
xor eax, eax
mov byte [esp + 0x33], al
mov eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c]
jmp 0x538701
dec esi
mov edx, dword [esp + 0x114]
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x120]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x84]
test esi, esi
jl 0x53873c
cmp ecx, esi
jbe 0x538b33
mov edx, dword [esp + 0x114]
mov edx, dword [edx + esi*4]
cmp esi, eax
jne 0x53871d
and edx, ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
jmp 0x538923
mov dword [esp + 0x94], edi
mov dword [esp + 0x48], ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x98]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [0x8f52e0]
test ecx, ecx
jne 0x538771
mov eax, dword [esp + 0x9c]
mov dword [edx], eax
jmp 0x53877f
mov eax, dword [esp + 0x9c]
mov edi, edx
call fcn.004642e0
lea eax, [0x8cf120]
mov dword [esp], eax
lea ecx, [0x6d04e0]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0046bbe0
xor eax, eax
jmp 0x5387cb
mov dword [esp + 0x60], eax
mov ecx, dword [esp + eax*4 + 0xb8]
lea edx, [0x8cf120]
mov dword [esp], edx
lea ebx, [0x6d04e0]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0046bbe0
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 0x10
jge 0x5387d4
jb 0x53879f
jmp 0x53882a
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x94]
mov eax, ecx
jmp 0x5387e5
mov ecx, ebp
test ecx, ecx
jle 0x5387f8
lea ebp, [ecx - 1]
cmp eax, ebp
jbe 0x538821
mov esi, dword [ebx + ecx*4 - 4]
test esi, esi
je 0x5387e3
mov edx, dword [esp + 0x48]
cmp ecx, edx
ja 0x53881c
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], edx
add esp, 0xf8
ret
call fcn.004643a0
mov ecx, eax
mov eax, ebp
call fcn.00464360
mov ecx, 0x10
call fcn.00464360
mov dword [esp + 0x74], ebp
mov dword [esp + 0xb0], edi
mov dword [esp + 0x6c], eax
shr edx, 0x1c
mov edx, dword [esp + edx*4 + 0xb8]
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
call fcn.005349f0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
mov eax, dword [esp + 0x5c]
add eax, 4
mov edx, dword [esp + 0x50]
shl edx, 4
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov ebx, 1
mov byte [esp + 0x33], bl
mov esi, dword [esp + 0x74]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x118]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
cmp ebx, 0x20
jge 0x5386d8
mov dword [esp + 0x50], edx
movzx eax, byte [esp + 0x33]
test al, al
jne 0x538946
mov eax, dword [esp + 0x74]
jmp 0x538834
mov dword [esp + 0x70], ebp
mov dword [esp + 0xb4], edi
mov eax, dword [esp + 0x9c]
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], edi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
call fcn.00535ac0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], 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 + 0xb4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00535ac0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x9c]
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.00535ac0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], 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 + 0xb0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00535ac0
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 + 0x120]
mov dword [esp + 0x18], eax
call fcn.00536aa0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
jmp 0x538834
mov eax, esi
call fcn.00464360
mov ecx, 0x10
call fcn.00464360
mov eax, edx
mov ecx, 0x10
call fcn.00464360
mov ecx, 0x10
call fcn.00464360
mov eax, ecx
mov ecx, 0x10
call fcn.00464360
xor eax, eax
mov ecx, eax
call fcn.00464360
lea eax, [0x698ba0]
mov dword [esp], eax
lea eax, [0x73b730]
mov dword [esp + 4], eax
call fcn.00436320
nop
call fcn.00462ed0
jmp fcn.00538110