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

Disassembly:
push 0xffffffffffffffff
push 0x52ed8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov al, byte [esp + 0xb]
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8c], al
call fcn.00405cc0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x90]
call fcn.00408160
lea ecx, [esp + 0x1b]
mov dword [esp + 0x15c], esi
push ecx
lea ecx, [esp + 0x40]
call fcn.004a40f0
lea edx, [esp + 0x33]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0x160], 1
call fcn.004a40f0
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x62], ecx
lea edx, [esp + 0x3b]
mov dword [esp + 0x5c], eax
mov word [esp + 0x66], cx
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x160], 2
mov word [esp + 0x64], ax
call fcn.004a40f0
lea eax, [esp + 0x13]
lea ecx, [esp + 0x78]
push eax
mov byte [esp + 0x160], 3
call fcn.004a40f0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15c], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x44]
call fcn.00408160
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x54]
call fcn.00408160
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x70]
call fcn.00408160
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x80]
call fcn.00408160
cmp word [ebp + 0xf8], si
mov byte [esp + 0x15c], 5
je 0x4eac10
xor ecx, ecx
mov eax, 0x38e38e39
mov cx, word [ebp + 0xfa]
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
cmp eax, 1
jne 0x4eae76
mov eax, dword [esp + 0x164]
mov dl, byte [ebp + 0xf8]
and byte [eax], dl
mov ebx, dword [esp + 0x168]
cmp ebx, 1
jne 0x4eac3d
mov edi, 0x54a4c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x54a4c4
lea ecx, [esp + 0x90]
call fcn.00408160
test ebx, ebx
jbe 0x4eacbc
mov edx, dword [esp + 0x164]
xor ecx, ecx
mov word [esp + 0x14], cx
mov al, byte [esi + edx]
mov byte [esp + 0x16], cl
mov byte [esp + 0x1c], al
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x1c]
and edx, 0xff
push edx
push str._02x
push eax
call fcn.00514b75
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x90]
call fcn.004080a0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.004080a0
inc esi
cmp esi, ebx
jb 0x4eac41
mov eax, dword [0x531160]
lea ecx, [esp + 0x88]
push eax
push 0
push ecx
lea ecx, [esp + 0x48]
call fcn.00407be0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x54]
call fcn.00408160
mov esi, dword [esp + 0x16c]
mov edi, dword [esp + 0x170]
push esi
lea edx, [esp + 0x6c]
push edi
push edx
mov ecx, ebp
call fcn.004ee370
mov al, byte [esp + 0x13]
mov byte [esp + 0x20], al
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 6
call fcn.004b6fc0
push esi
lea ecx, [esp + 0x24]
push edi
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, ebp
call fcn.004eec30
mov edx, dword [esp + 0x24]
xor esi, esi
cmp edx, esi
je 0x4ead64
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, edx
test eax, 0xfffffff0
jne 0x4eadd9
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x9c], cl
lea ecx, [esp + 0x9c]
call fcn.00405cc0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0xa0]
call fcn.00408160
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x98]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 7
call fcn.004a4110
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 6
call fcn.00405cc0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
test edx, edx
je 0x4eb1c2
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, edx
sar ecx, 4
cmp eax, ecx
jae 0x4eb1c2
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xf1]
mov byte [esp + 0xf0], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x531160]
add edx, ecx
push eax
push 0
push edx
lea ecx, [esp + 0x58]
call fcn.00407be0
mov eax, dword [esp + 0x54]
test eax, eax
jbe 0x4eaf0d
shr eax, 1
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4eae53
mov eax, 0x53115c
mov esi, dword [esp + 0x14]
mov edx, esi
and edx, 0xff
push edx
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00503750
add esp, 0xc
jmp 0x4eaf11
cmp eax, 2
jne 0x4eac10
mov eax, dword [esp + 0x164]
mov ebx, dword [esp + 0x168]
xor ecx, ecx
cmp ebx, 2
mov ch, byte [eax]
mov cl, byte [eax + 1]
mov eax, ecx
jne 0x4eac17
mov edx, dword [esp + 0x170]
mov ecx, dword [esp + 0x16c]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004ea220
push 1
lea ecx, [esp + 0x7c]
mov esi, eax
mov byte [esp + 0x160], 0
call fcn.00405cc0
push 1
lea ecx, [esp + 0x6c]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x50]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x40]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x8c]
mov dword [esp + 0x160], 0xffffffff
call fcn.00405cc0
mov eax, esi
jmp 0x4eb280
mov esi, dword [esp + 0x14]
mov ecx, dword [0x531160]
lea edx, [esp + 0x4c]
push ecx
push 0
push edx
lea ecx, [esp + 0x84]
call fcn.00407fc0
lea ecx, [esp + 0xa8]
call fcn.00503cd0
mov eax, dword [ebp + 0xcc]
lea ecx, [esp + 0xa8]
push eax
mov byte [esp + 0x160], 8
call fcn.004df390
test eax, eax
je 0x4eb11c
mov eax, dword [ebp + 0x9c]
cmp eax, 0xffffffff
je 0x4eaf99
lea ecx, [esp + 0x78]
and esi, 0xff
push ecx
mov ecx, dword [esp + 0x168]
shl esi, 3
push eax
lea edx, [esp + 0xf8]
push esi
lea eax, [ebx*8]
push edx
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.005042d0
mov eax, dword [esp + 0x80]
lea esi, [eax - 1]
cmp eax, esi
ja 0x4eafac
call fcn.00514440
lea ecx, [esp + 0x78]
call fcn.0049a5e0
mov edx, dword [esp + 0x7c]
cmp byte [edx + esi], 0x2d
jne 0x4eb00f
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x98]
dec eax
push eax
push 0
push ecx
lea ecx, [esp + 0x84]
call fcn.0049e4f0
mov edx, dword [0x531160]
lea ecx, [esp + 0x78]
push edx
push 0
push eax
mov byte [esp + 0x168], 9
call fcn.00407be0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 8
call fcn.00405cc0
xor ebx, ebx
lea edi, [ebp + 0x34]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x4eb0ce
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jae 0x4eb0ce
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
test eax, eax
jne 0x4eb053
mov eax, 0x53115c
push ecx
mov ecx, dword [esp + 0x48]
push eax
push ecx
push 0
lea ecx, [esp + 0x4c]
call fcn.0049a570
test eax, eax
jne 0x4eb093
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 0x18]
mov eax, dword [eax + esi + 0x14]
test eax, eax
jne 0x4eb07d
mov eax, 0x53115c
mov edx, dword [esp + 0x54]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x5c]
call fcn.0049a570
test eax, eax
je 0x4eb0e0
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
test eax, eax
jne 0x4eb0a7
mov eax, 0x53115c
push ecx
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x44]
push eax
push 0
call fcn.0049a570
test eax, eax
jne 0x4eb0c5
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4eb0e0
inc ebx
add esi, 0x4c
jmp 0x4eb016
mov eax, dword [edi + 8]
lea ecx, [esp + 0x3c]
push ecx
push 1
push eax
mov ecx, edi
call fcn.004f0300
lea ecx, [esp + 0xa8]
mov byte [esp + 0x15c], 6
call fcn.00503e30
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x168]
inc ecx
add eax, 0x10
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
jmp 0x4eade1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x15c], 6
call fcn.00503e30
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, edi
mov byte [esp + 0x15c], 5
je 0x4eb158
push 0
mov ecx, esi
call fcn.004b4df0
add esi, 0x10
cmp esi, edi
jne 0x4eb144
mov esi, dword [esp + 0x24]
push esi
call fcn.00514120
add esp, 4
xor eax, eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], eax
push 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x160], al
call fcn.00405cc0
push 1
lea ecx, [esp + 0x6c]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x50]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x40]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x8c]
mov dword [esp + 0x160], 0xffffffff
call fcn.00405cc0
xor eax, eax
jmp 0x4eb280
cmp edx, edi
mov byte [esp + 0x15c], 5
mov esi, edx
je 0x4eb1e4
push 1
mov ecx, esi
call fcn.00405cc0
add esi, 0x10
cmp esi, edi
jne 0x4eb1d0
mov edx, dword [esp + 0x24]
push edx
call fcn.00514120
add esp, 4
xor esi, esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], esi
push 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x160], 0
call fcn.00405cc0
push 1
lea ecx, [esp + 0x6c]
call fcn.00405cc0
push 1
lea ecx, [esp + 0x50]
call fcn.00405cc0
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x4eb248
mov al, byte [ecx - 1]
test al, al
je 0x4eb23e
cmp al, 0xff
je 0x4eb23e
dec al
mov byte [ecx - 1], al
jmp 0x4eb248
dec ecx
push ecx
call fcn.00514120
add esp, 4
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x40], esi
cmp ecx, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x4eb27b
mov al, byte [ecx - 1]
test al, al
je 0x4eb271
cmp al, 0xff
je 0x4eb271
dec al
mov byte [ecx - 1], al
jmp 0x4eb27b
dec ecx
push ecx
call fcn.00514120
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x10