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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x662ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x1f]
push ecx
lea ecx, [esp + 0x64]
call fcn.00536970
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
xor ebp, ebp
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], ebp
call fcn.00502530
mov eax, dword [esp + 0x74]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], ebp
mov dword [eax], eax
mov eax, dword [esp + 0x74]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
xor ebx, ebx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x28], ebx
je 0x537fed
mov dword [esp + 0x20], ebp
jmp 0x537f02
xor ebp, ebp
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x537f22
call fcn.006111cc
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x10]
add edi, dword [esp + 0x20]
sar ecx, 2
mov dword [esp + 0x30], edi
cmp ebx, ecx
jb 0x537f3f
call fcn.006111cc
mov edx, dword [esi + 0x28]
mov eax, dword [edx + ebx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], ebp
jmp 0x537f54
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov al, byte [edi + ecx + 0x10]
test al, al
je 0x537fc0
mov ebx, dword [esi + 0x158]
mov edi, dword [esi + 0x140]
movzx edx, al
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edx
lea ecx, [esi + 0x140]
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00457060
mov ebp, eax
test edi, edi
je 0x537f93
cmp edi, dword [ebp]
je 0x537f98
call fcn.006111cc
cmp ebx, dword [ebp + 4]
jne 0x537fad
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 8
mov dword [esp + 0x1c], eax
jl 0x537f50
jmp 0x537fc0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x64]
call fcn.005139e0
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x28]
add dword [esp + 0x20], 0x30
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x28], ebx
cmp ebx, eax
jb 0x537f00
mov ebp, dword [esi + 0x44]
cmp dword [esi + 0x40], ebp
lea edi, [esi + 0x34]
jbe 0x537ffd
call fcn.006111cc
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x40], ecx
cmp ebx, dword [edi + 0x10]
jbe 0x538010
call fcn.006111cc
mov edx, dword [esp + 0x40]
mov eax, dword [edi]
push ebp
push edx
push ebx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.00571760
mov edi, dword [esi + 0x5c]
cmp dword [esi + 0x58], edi
lea ebx, [esi + 0x4c]
jbe 0x538036
call fcn.006111cc
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x40], ecx
cmp ebp, dword [ebx + 0x10]
jbe 0x538049
call fcn.006111cc
mov edx, dword [esp + 0x40]
mov eax, dword [ebx]
push edi
push edx
push ebp
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.00571760
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x70], edi
lea ebx, [esi + 0x64]
jbe 0x53806f
call fcn.006111cc
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x40], ecx
cmp ebp, dword [ebx + 0x10]
jbe 0x538082
call fcn.006111cc
mov edx, dword [esp + 0x40]
mov eax, dword [ebx]
push edi
push edx
push ebp
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.00571760
mov edi, dword [esi + 0x28]
cmp edi, dword [esi + 0x2c]
jbe 0x5380a5
call fcn.006111cc
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x38], ebx
mov ebp, edi
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x3c], ebp
cmp dword [esi + 0x28], edi
jbe 0x5380bf
call fcn.006111cc
mov eax, dword [esi + 0x1c]
test ebx, ebx
je 0x5380ca
cmp ebx, eax
je 0x5380cf
call fcn.006111cc
cmp ebp, edi
je 0x538226
test ebx, ebx
jne 0x538151
call fcn.006111cc
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x5380ec
call fcn.006111cc
cmp dword [esi + 0x13c], 0
mov edi, dword [ebp]
mov dword [esp + 0x40], edi
je 0x538138
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x5c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00536850
mov ebp, eax
test ebx, ebx
je 0x538126
cmp ebx, dword [ebp]
je 0x53812b
call fcn.006111cc
mov ecx, dword [esp + 0x34]
cmp ecx, dword [ebp + 4]
je 0x5381fd
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x538197
mov ecx, dword [esi + 0x40]
lea ebx, [esi + 0x34]
lea ebp, [edi + 0xc]
test ecx, ecx
jne 0x538155
xor eax, eax
jmp 0x53815d
mov eax, dword [ebx]
jmp 0x5380e2
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [ebx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x53817b
mov eax, dword [ebp]
mov dword [edi], eax
add edi, 4
mov dword [ebx + 0x10], edi
jmp 0x5381fd
cmp ecx, edi
jbe 0x538184
call fcn.006111cc
mov eax, dword [ebx]
push ebp
push edi
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.0063b380
jmp 0x5381fd
cmp eax, 2
jne 0x5381ec
mov ecx, dword [esi + 0x58]
lea ebx, [esi + 0x4c]
lea ebp, [edi + 0x14]
test ecx, ecx
jne 0x5381ad
xor eax, eax
jmp 0x5381b5
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [ebx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x5381d0
mov eax, dword [ebp]
mov dword [edi], eax
add edi, 4
mov dword [ebx + 0x10], edi
jmp 0x5381fd
cmp ecx, edi
jbe 0x5381d9
call fcn.006111cc
mov eax, dword [ebx]
push ebp
push edi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0063b380
jmp 0x5381fd
cmp eax, 5
jne 0x5381fd
add edi, 0x24
push edi
lea ecx, [esi + 0x64]
call fcn.00551630
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x538222
call fcn.006111cc
xor eax, eax
mov ebp, dword [esp + 0x3c]
cmp ebp, dword [eax + 0x10]
jb 0x53821a
call fcn.006111cc
add ebp, 4
jmp 0x5380ae
mov eax, dword [ebx]
jmp 0x53820c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00569d60
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret