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

Disassembly:
push 0xffffffffffffffff
push 0x4f261e
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.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 + 0x90]
call fcn.00404080
lea ecx, [esp + 0x1b]
mov dword [esp + 0x15c], esi
push ecx
lea ecx, [esp + 0x40]
call fcn.00495010
lea edx, [esp + 0x33]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0x160], 1
call fcn.00495010
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.00495010
lea eax, [esp + 0x13]
lea ecx, [esp + 0x78]
push eax
mov byte [esp + 0x160], 3
call fcn.00495010
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15c], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512a68
lea ecx, [esp + 0x44]
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 + 0x54]
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 + 0x70]
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 + 0x80]
call fcn.00404080
cmp word [ebp + 0xf8], si
mov byte [esp + 0x15c], 5
je 0x4b18c0
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 0x4b1b26
mov eax, dword [esp + 0x164]
mov dl, byte [ebp + 0xf8]
and byte [eax], dl
mov ebx, dword [esp + 0x168]
cmp ebx, 1
jne 0x4b18ed
mov edi, 0x50a9ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x50a9ec
lea ecx, [esp + 0x90]
call fcn.00404080
test ebx, ebx
jbe 0x4b196c
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.004dbc12
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.00460480
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.00460480
inc esi
cmp esi, ebx
jb 0x4b18f1
mov eax, dword [0x4f4164]
lea ecx, [esp + 0x88]
push eax
push 0
push ecx
lea ecx, [esp + 0x48]
call fcn.004017e0
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 + 0x54]
call fcn.00404080
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.004b5020
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.00481120
push esi
lea ecx, [esp + 0x24]
push edi
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, ebp
call fcn.004b58e0
mov edx, dword [esp + 0x24]
xor esi, esi
cmp edx, esi
je 0x4b1a14
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, edx
test eax, 0xfffffff0
jne 0x4b1a89
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x9c], cl
lea ecx, [esp + 0x9c]
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 + 0xa0]
call fcn.00404080
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x98]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 7
call fcn.00480f90
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 6
call fcn.004019e0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
test edx, edx
je 0x4b1e72
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, edx
sar ecx, 4
cmp eax, ecx
jae 0x4b1e72
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 [0x4f4164]
add edx, ecx
push eax
push 0
push edx
lea ecx, [esp + 0x58]
call fcn.004017e0
mov eax, dword [esp + 0x54]
test eax, eax
jbe 0x4b1bbd
shr eax, 1
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4b1b03
mov eax, 0x4f4178
mov esi, dword [esp + 0x14]
mov edx, esi
and edx, 0xff
push edx
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004caa40
add esp, 0xc
jmp 0x4b1bc1
cmp eax, 2
jne 0x4b18c0
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 0x4b18c7
mov edx, dword [esp + 0x170]
mov ecx, dword [esp + 0x16c]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004b0ed0
push 1
lea ecx, [esp + 0x7c]
mov esi, eax
mov byte [esp + 0x160], 0
call fcn.004019e0
push 1
lea ecx, [esp + 0x6c]
call fcn.004019e0
push 1
lea ecx, [esp + 0x50]
call fcn.004019e0
push 1
lea ecx, [esp + 0x40]
call fcn.004019e0
push 1
lea ecx, [esp + 0x8c]
mov dword [esp + 0x160], 0xffffffff
call fcn.004019e0
mov eax, esi
jmp 0x4b1f30
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4f4164]
lea edx, [esp + 0x4c]
push ecx
push 0
push edx
lea ecx, [esp + 0x84]
call fcn.00408260
lea ecx, [esp + 0xa8]
call fcn.004cafc0
mov eax, dword [ebp + 0xcc]
lea ecx, [esp + 0xa8]
push eax
mov byte [esp + 0x160], 8
call fcn.00485300
test eax, eax
je 0x4b1dcc
mov eax, dword [ebp + 0x9c]
cmp eax, 0xffffffff
je 0x4b1c49
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.004cb5c0
mov eax, dword [esp + 0x80]
lea esi, [eax - 1]
cmp eax, esi
ja 0x4b1c5c
call fcn.004db657
lea ecx, [esp + 0x78]
call fcn.004620f0
mov edx, dword [esp + 0x7c]
cmp byte [edx + esi], 0x2d
jne 0x4b1cbf
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x98]
dec eax
push eax
push 0
push ecx
lea ecx, [esp + 0x84]
call fcn.00464f00
mov edx, dword [0x4f4164]
lea ecx, [esp + 0x78]
push edx
push 0
push eax
mov byte [esp + 0x168], 9
call fcn.004017e0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x160], 8
call fcn.004019e0
xor ebx, ebx
lea edi, [ebp + 0x34]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x4b1d7e
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 0x4b1d7e
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
test eax, eax
jne 0x4b1d03
mov eax, 0x4f4178
push ecx
mov ecx, dword [esp + 0x48]
push eax
push ecx
push 0
lea ecx, [esp + 0x4c]
call fcn.00402c10
test eax, eax
jne 0x4b1d43
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 0x18]
mov eax, dword [eax + esi + 0x14]
test eax, eax
jne 0x4b1d2d
mov eax, 0x4f4178
mov edx, dword [esp + 0x54]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x5c]
call fcn.00402c10
test eax, eax
je 0x4b1d90
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + esi + 8]
mov eax, dword [eax + esi + 4]
test eax, eax
jne 0x4b1d57
mov eax, 0x4f4178
push ecx
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x44]
push eax
push 0
call fcn.00402c10
test eax, eax
jne 0x4b1d75
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4b1d90
inc ebx
add esi, 0x4c
jmp 0x4b1cc6
mov eax, dword [edi + 8]
lea ecx, [esp + 0x3c]
push ecx
push 1
push eax
mov ecx, edi
call fcn.004b6de0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x15c], 6
call fcn.004cb120
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 0x4b1a91
lea ecx, [esp + 0xa8]
mov byte [esp + 0x15c], 6
call fcn.004cb120
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, edi
mov byte [esp + 0x15c], 5
je 0x4b1e08
push 0
mov ecx, esi
call fcn.00416010
add esi, 0x10
cmp esi, edi
jne 0x4b1df4
mov esi, dword [esp + 0x24]
push esi
call fcn.004db420
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.004019e0
push 1
lea ecx, [esp + 0x6c]
call fcn.004019e0
push 1
lea ecx, [esp + 0x50]
call fcn.004019e0
push 1
lea ecx, [esp + 0x40]
call fcn.004019e0
push 1
lea ecx, [esp + 0x8c]
mov dword [esp + 0x160], 0xffffffff
call fcn.004019e0
xor eax, eax
jmp 0x4b1f30
cmp edx, edi
mov byte [esp + 0x15c], 5
mov esi, edx
je 0x4b1e94
push 1
mov ecx, esi
call fcn.004019e0
add esi, 0x10
cmp esi, edi
jne 0x4b1e80
mov edx, dword [esp + 0x24]
push edx
call fcn.004db420
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.004019e0
push 1
lea ecx, [esp + 0x6c]
call fcn.004019e0
push 1
lea ecx, [esp + 0x50]
call fcn.004019e0
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x4b1ef8
mov al, byte [ecx - 1]
test al, al
je 0x4b1eee
cmp al, 0xff
je 0x4b1eee
dec al
mov byte [ecx - 1], al
jmp 0x4b1ef8
dec ecx
push ecx
call fcn.004db420
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 0x4b1f2b
mov al, byte [ecx - 1]
test al, al
je 0x4b1f21
cmp al, 0xff
je 0x4b1f21
dec al
mov byte [ecx - 1], al
jmp 0x4b1f2b
dec ecx
push ecx
call fcn.004db420
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