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

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2f8]
test esi, esi
je 0x522e0e
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x522e0e
call fcn.004301c0
cmp eax, edi
jne 0x522e0e
mov ecx, dword [esi + 0xa4]
pop edi
pop esi
jmp 0x5ae240
pop edi
pop esi
ret
push 0xffffffffffffffff
push 0x67c898
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7289f4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x54], ebp
jne 0x5ae286
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
cmp dword [esi + 0x20], ebp
je 0x5ae270
push esi
lea ecx, [esp + 0x50]
call fcn.004a56b5
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x15c]
add eax, 0x30
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x70], ebp
call fcn.00535000
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x34]
push edx
push 1
push 0x696f30
push eax
mov byte [esp + 0x78], 1
call dword [0x68a1c4]
mov ecx, dword [esi + 0x20]
mov edi, dword [esp + 0x38]
mov ebx, dword [0x68a7fc]
push ebp
push ebp
push 0x1a1
push ecx
add edi, 5
call ebx
cmp eax, edi
je 0x5ae2fe
mov eax, dword [esi + 0x20]
movzx edx, di
push edx
push ebp
push 0x1a0
push eax
call ebx
mov ecx, dword [esi + 0x54]
mov edi, dword [ecx + 0x148]
mov eax, dword [esi + 0x20]
mov edx, dword [edi + 0x30]
push ebp
push ebp
push 0x18b
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebp
call ebx
mov ebp, eax
sub ebp, 1
js 0x5ae381
lea ebx, [ebx]
mov ecx, dword [esi + 0x20]
push 0
push ebp
push 0x199
push ecx
call ebx
push eax
mov ecx, edi
call fcn.005ae690
mov edi, eax
test edi, edi
je 0x5ae362
mov ecx, edi
call fcn.0053b0e0
test eax, eax
jne 0x5ae362
mov ecx, edi
call fcn.004fe490
test eax, eax
jne 0x5ae378
mov edx, dword [esi + 0x20]
push 0
push ebp
push 0x182
push edx
call ebx
mov dword [esp + 0x24], 1
sub ebp, 1
mov edi, dword [esp + 0x1c]
jns 0x5ae330
xor eax, eax
cmp dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
jle 0x5ae557
test eax, eax
jl 0x5ae548
cmp eax, dword [edi + 0x30]
jge 0x5ae548
mov ecx, dword [edi + 0x2c]
mov ebp, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
test ebp, ebp
je 0x5ae548
mov ecx, ebp
call fcn.0053b0e0
test eax, eax
jne 0x5ae544
mov ecx, ebp
call fcn.004fe490
test eax, eax
je 0x5ae544
mov ecx, ebp
call fcn.005601d0
push eax
mov ecx, esi
call fcn.005ae050
test eax, eax
jge 0x5ae544
cmp dword [esi + 0x90], 0
je 0x5ae4e2
mov edx, dword [esi + 0x20]
xor edi, edi
push edi
push edi
push 0x18b
push edx
call ebx
test eax, eax
jle 0x5ae4bf
lea esp, [esp]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.005ae100
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
mov byte [esp + 0x6c], 2
call fcn.0056b340
push eax
lea edx, [esp + 0x24]
push edx
call fcn.005ae0a0
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ae460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
cmp byte [esp + 0x17], 0
mov byte [esp + 0x68], 1
jne 0x5ae4a6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ae48c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x18b
push ecx
inc edi
call ebx
cmp edi, eax
jl 0x5ae410
jmp 0x5ae4bf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ae4bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.0056b340
mov eax, dword [eax]
mov edx, dword [esi + 0x20]
push eax
push edi
push 0x181
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x30]
jmp 0x5ae504
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.0056b340
mov eax, dword [eax]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x180
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ae520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jl 0x5ae540
mov ecx, ebp
call fcn.005601d0
mov ecx, dword [esi + 0x20]
push eax
push edi
push 0x19a
push ecx
call ebx
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
jl 0x5ae391
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x18b
push edx
call ebx
xor ecx, ecx
test eax, eax
setg cl
push ecx
mov ecx, esi
call fcn.004aea9f
cmp dword [esp + 0x24], 0
je 0x5ae58a
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
call dword [0x68a80c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 0
call fcn.00535080
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], 0xffffffff
call fcn.004a5709
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret