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

Disassembly:
push 0xffffffffffffffff
push 0x4f259b
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.004019e0
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x98]
call fcn.00404080
mov si, word [ebp + 0xf8]
mov dword [esp + 0x174], ebx
cmp si, bx
je 0x4b0f6a
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 0x4b154c
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.004dbc12
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.00460480
lea eax, [esp + 0x17]
lea ecx, [esp + 0x44]
push eax
call fcn.00495010
lea ecx, [esp + 0x2f]
mov byte [esp + 0x174], 1
push ecx
lea ecx, [esp + 0x58]
call fcn.00495010
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.00495010
lea edx, [esp + 0x13]
lea ecx, [esp + 0x80]
push edx
mov byte [esp + 0x178], 3
call fcn.00495010
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x174], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x4c]
call fcn.00404080
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x5c]
call fcn.00404080
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x78]
call fcn.00404080
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x88]
call fcn.00404080
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x174], 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x5c]
call fcn.00404080
mov eax, dword [0x4f4164]
lea ecx, [esp + 0x90]
push eax
push ebx
push ecx
lea ecx, [esp + 0x50]
call fcn.004017e0
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.004b5020
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.00481120
push esi
lea ecx, [esp + 0x1c]
push edi
lea edx, [esp + 0x4c]
push ecx
push edx
mov ecx, ebp
call fcn.004b58e0
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x4b114a
mov edi, dword [esp + 0x20]
mov eax, edi
sub eax, edx
test eax, 0xfffffff0
jne 0x4b11bf
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0xa4], cl
lea ecx, [esp + 0xa4]
call fcn.004019e0
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0xa8]
call fcn.00404080
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xa0]
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 7
call fcn.00480f90
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x178], 6
call fcn.004019e0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
cmp edx, ebx
je 0x4b156c
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, edx
sar ecx, 4
cmp eax, ecx
jae 0x4b156c
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 [0x4f4164]
add edx, ecx
push eax
push ebx
push edx
lea ecx, [esp + 0x60]
call fcn.004017e0
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jbe 0x4b1252
shr eax, 1
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x4b1232
mov eax, 0x4f4178
mov esi, dword [esp + 0x3c]
mov edx, esi
and edx, 0xff
push edx
push eax
lea eax, [esp + 0x110]
push eax
call fcn.004caa40
add esp, 0xc
jmp 0x4b1256
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.00415cf0
add esp, 0xc
mov edx, dword [0x4f4164]
lea ecx, [esp + 0x80]
push edx
push ebx
push eax
mov byte [esp + 0x180], 8
call fcn.004017e0
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x178], 6
call fcn.004019e0
lea ecx, [esp + 0xc0]
call fcn.004cafc0
mov eax, dword [ebp + 0xcc]
lea ecx, [esp + 0xc0]
push eax
mov byte [esp + 0x178], 9
call fcn.00485300
test eax, eax
je 0x4b14ae
mov eax, dword [ebp + 0x9c]
cmp eax, 0xffffffff
je 0x4b1322
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.004cb5c0
mov eax, dword [esp + 0x88]
lea esi, [eax - 1]
cmp eax, esi
ja 0x4b1335
call fcn.004db657
lea ecx, [esp + 0x80]
call fcn.004620f0
mov ecx, dword [esp + 0x84]
cmp byte [ecx + esi], 0x2d
jne 0x4b139f
mov edx, dword [esp + 0x88]
lea eax, [esp + 0xb0]
dec edx
lea ecx, [esp + 0x80]
push edx
push ebx
push eax
call fcn.00464f00
mov ecx, dword [0x4f4164]
mov byte [esp + 0x174], 0xd
push ecx
push ebx
push eax
lea ecx, [esp + 0x8c]
call fcn.004017e0
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x178], 9
call fcn.004019e0
mov dword [esp + 0x40], ebx
lea edi, [ebp + 0x34]
xor esi, esi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4b1467
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 0x4b1467
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
cmp eax, ebx
jne 0x4b13e9
mov eax, 0x4f4178
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
push ebx
lea ecx, [esp + 0x54]
call fcn.00402c10
cmp eax, ebx
jne 0x4b1427
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 0x18]
mov eax, dword [eax + esi + 0x14]
cmp eax, ebx
jne 0x4b1412
mov eax, 0x4f4178
mov edx, dword [esp + 0x5c]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x64]
call fcn.00402c10
cmp eax, ebx
je 0x4b1479
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
cmp eax, ebx
jne 0x4b143b
mov eax, 0x4f4178
push ecx
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x4c]
push eax
push ebx
call fcn.00402c10
cmp eax, ebx
jne 0x4b1456
cmp dword [esp + 0x5c], ebx
je 0x4b1479
mov ecx, dword [esp + 0x40]
inc ecx
add esi, 0x4c
mov dword [esp + 0x40], ecx
jmp 0x4b13a8
mov eax, dword [edi + 8]
lea ecx, [esp + 0x44]
push ecx
push 1
push eax
mov ecx, edi
call fcn.004b6de0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x174], 6
call fcn.004cb120
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 0x4b11c7
lea ecx, [esp + 0xc0]
mov byte [esp + 0x174], 6
call fcn.004cb120
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0x174], 5
je 0x4b14e9
push ebx
mov ecx, esi
call fcn.00416010
add esi, 0x10
cmp esi, edi
jne 0x4b14d6
mov esi, dword [esp + 0x1c]
push esi
call fcn.004db420
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.004019e0
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x178], 0xb
call fcn.004019e0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x178], 0xa
call fcn.004019e0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x178], bl
call fcn.004019e0
push 1
lea ecx, [esp + 0x94]
mov dword [esp + 0x178], 0xffffffff
call fcn.004019e0
xor eax, eax
jmp 0x4b163b
cmp edx, edi
mov byte [esp + 0x174], 5
mov esi, edx
je 0x4b158e
push 1
mov ecx, esi
call fcn.004019e0
add esi, 0x10
cmp esi, edi
jne 0x4b157a
mov edx, dword [esp + 0x1c]
push edx
call fcn.004db420
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.004019e0
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x178], 0xf
call fcn.004019e0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x178], 0xe
call fcn.004019e0
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x4b1603
mov al, byte [ecx - 1]
cmp al, bl
je 0x4b15f9
cmp al, 0xff
je 0x4b15f9
dec al
mov byte [ecx - 1], al
jmp 0x4b1603
dec ecx
push ecx
call fcn.004db420
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 0x4b1636
mov al, byte [ecx - 1]
cmp al, bl
je 0x4b162c
cmp al, 0xff
je 0x4b162c
dec al
mov byte [ecx - 1], al
jmp 0x4b1636
dec ecx
push ecx
call fcn.004db420
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