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

Disassembly:
push 0xffffffffffffffff
push 0x52ed0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov al, byte [esp + 7]
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0x94], 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 + 0x98]
call fcn.00408160
mov si, word [ebp + 0xf8]
mov dword [esp + 0x174], ebx
cmp si, bx
je 0x4ea2ba
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, 2
jne 0x4ea89c
and dword [esp + 0x17c], esi
mov eax, dword [esp + 0x17c]
xor edx, edx
and eax, 0xffff
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x34], edx
push str._04x
push ecx
mov byte [esp + 0x40], dl
call fcn.00514b75
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.004080a0
lea eax, [esp + 0x17]
lea ecx, [esp + 0x44]
push eax
call fcn.004a40f0
lea ecx, [esp + 0x2f]
mov byte [esp + 0x174], 1
push ecx
lea ecx, [esp + 0x58]
call fcn.004a40f0
xor edx, edx
xor eax, eax
lea ecx, [esp + 0x2e]
mov dword [esp + 0x64], edx
mov dword [esp + 0x6a], eax
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x178], 2
mov word [esp + 0x6c], dx
mov word [esp + 0x72], ax
call fcn.004a40f0
lea edx, [esp + 0x13]
lea ecx, [esp + 0x80]
push edx
mov byte [esp + 0x178], 3
call fcn.004a40f0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x174], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x4c]
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 + 0x5c]
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 + 0x78]
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 + 0x88]
call fcn.00408160
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x174], 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x55802c
lea ecx, [esp + 0x5c]
call fcn.00408160
mov eax, dword [0x531160]
lea ecx, [esp + 0x90]
push eax
push ebx
push ecx
lea ecx, [esp + 0x50]
call fcn.00407be0
mov esi, dword [esp + 0x180]
mov edi, dword [esp + 0x184]
push esi
lea edx, [esp + 0x74]
push edi
push edx
mov ecx, ebp
call fcn.004ee370
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 6
call fcn.004b6fc0
push esi
lea ecx, [esp + 0x1c]
push edi
lea edx, [esp + 0x4c]
push ecx
push edx
mov ecx, ebp
call fcn.004eec30
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x4ea49a
mov edi, dword [esp + 0x20]
mov eax, edi
sub eax, edx
test eax, 0xfffffff0
jne 0x4ea50f
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0xa4], cl
lea ecx, [esp + 0xa4]
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 + 0xa8]
call fcn.00408160
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xa0]
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 7
call fcn.004a4110
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x178], 6
call fcn.00405cc0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
cmp edx, ebx
je 0x4ea8bc
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, edx
sar ecx, 4
cmp eax, ecx
jae 0x4ea8bc
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x3c], bl
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x531160]
add edx, ecx
push eax
push ebx
push edx
lea ecx, [esp + 0x60]
call fcn.00407be0
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jbe 0x4ea5a2
shr eax, 1
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x4ea582
mov eax, 0x53115c
mov esi, dword [esp + 0x3c]
mov edx, esi
and edx, 0xff
push edx
push eax
lea eax, [esp + 0x110]
push eax
call fcn.00503750
add esp, 0xc
jmp 0x4ea5a6
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x17c]
xor ecx, ecx
mov byte [esp + 0x15], bl
mov cl, ah
mov byte [esp + 0x15], al
lea edx, [esp + 0x54]
mov byte [esp + 0x14], cl
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.004ab380
add esp, 0xc
mov edx, dword [0x531160]
lea ecx, [esp + 0x80]
push edx
push ebx
push eax
mov byte [esp + 0x180], 8
call fcn.00407be0
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x178], 6
call fcn.00405cc0
lea ecx, [esp + 0xc0]
call fcn.00503cd0
mov eax, dword [ebp + 0xcc]
lea ecx, [esp + 0xc0]
push eax
mov byte [esp + 0x178], 9
call fcn.004df390
test eax, eax
je 0x4ea7fe
mov eax, dword [ebp + 0x9c]
cmp eax, 0xffffffff
je 0x4ea672
lea ecx, [esp + 0x80]
and esi, 0xff
push ecx
push eax
shl esi, 3
lea edx, [esp + 0x110]
push esi
push edx
lea eax, [esp + 0x24]
push 0x10
push eax
lea ecx, [esp + 0xd8]
call fcn.005042d0
mov eax, dword [esp + 0x88]
lea esi, [eax - 1]
cmp eax, esi
ja 0x4ea685
call fcn.00514440
lea ecx, [esp + 0x80]
call fcn.0049a5e0
mov ecx, dword [esp + 0x84]
cmp byte [ecx + esi], 0x2d
jne 0x4ea6ef
mov edx, dword [esp + 0x88]
lea eax, [esp + 0xb0]
dec edx
lea ecx, [esp + 0x80]
push edx
push ebx
push eax
call fcn.0049e4f0
mov ecx, dword [0x531160]
mov byte [esp + 0x174], 0xd
push ecx
push ebx
push eax
lea ecx, [esp + 0x8c]
call fcn.00407be0
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x178], 9
call fcn.00405cc0
mov dword [esp + 0x40], ebx
lea edi, [ebp + 0x34]
xor esi, esi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4ea7b7
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
mov eax, dword [esp + 0x40]
cmp eax, edx
jae 0x4ea7b7
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
cmp eax, ebx
jne 0x4ea739
mov eax, 0x53115c
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
push ebx
lea ecx, [esp + 0x54]
call fcn.0049a570
cmp eax, ebx
jne 0x4ea777
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 0x18]
mov eax, dword [eax + esi + 0x14]
cmp eax, ebx
jne 0x4ea762
mov eax, 0x53115c
mov edx, dword [esp + 0x5c]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x64]
call fcn.0049a570
cmp eax, ebx
je 0x4ea7c9
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
cmp eax, ebx
jne 0x4ea78b
mov eax, 0x53115c
push ecx
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x4c]
push eax
push ebx
call fcn.0049a570
cmp eax, ebx
jne 0x4ea7a6
cmp dword [esp + 0x5c], ebx
je 0x4ea7c9
mov ecx, dword [esp + 0x40]
inc ecx
add esi, 0x4c
mov dword [esp + 0x40], ecx
jmp 0x4ea6f8
mov eax, dword [edi + 8]
lea ecx, [esp + 0x44]
push ecx
push 1
push eax
mov ecx, edi
call fcn.004f0300
lea ecx, [esp + 0xc0]
mov byte [esp + 0x174], 6
call fcn.00503e30
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
inc ecx
add eax, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], eax
jmp 0x4ea517
lea ecx, [esp + 0xc0]
mov byte [esp + 0x174], 6
call fcn.00503e30
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0x174], 5
je 0x4ea839
push ebx
mov ecx, esi
call fcn.004b4df0
add esi, 0x10
cmp esi, edi
jne 0x4ea826
mov esi, dword [esp + 0x1c]
push esi
call fcn.00514120
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x178], 0xc
call fcn.00405cc0
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x178], 0xb
call fcn.00405cc0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x178], 0xa
call fcn.00405cc0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x178], bl
call fcn.00405cc0
push 1
lea ecx, [esp + 0x94]
mov dword [esp + 0x178], 0xffffffff
call fcn.00405cc0
xor eax, eax
jmp 0x4ea98b
cmp edx, edi
mov byte [esp + 0x174], 5
mov esi, edx
je 0x4ea8de
push 1
mov ecx, esi
call fcn.00405cc0
add esi, 0x10
cmp esi, edi
jne 0x4ea8ca
mov edx, dword [esp + 0x1c]
push edx
call fcn.00514120
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x178], 0x10
call fcn.00405cc0
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x178], 0xf
call fcn.00405cc0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x178], 0xe
call fcn.00405cc0
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x4ea953
mov al, byte [ecx - 1]
cmp al, bl
je 0x4ea949
cmp al, 0xff
je 0x4ea949
dec al
mov byte [ecx - 1], al
jmp 0x4ea953
dec ecx
push ecx
call fcn.00514120
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x48], ebx
cmp ecx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x4ea986
mov al, byte [ecx - 1]
cmp al, bl
je 0x4ea97c
cmp al, 0xff
je 0x4ea97c
dec al
mov byte [ecx - 1], al
jmp 0x4ea986
dec ecx
push ecx
call fcn.00514120
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret 0xc