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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4f2856
push eax
mov eax, 0x13a0
mov dword fs:[0], esp
call fcn.004dcdf0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x220]
mov dword [esp + 0x18], esi
call fcn.00495ed0
xor edi, edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x13b8], edi
call fcn.0046ec80
mov eax, dword [esp + 0x13c8]
or ebp, 0xffffffff
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x7c]
cmp eax, ebp
mov byte [esp + 0x13b8], 1
mov dword [esp + 0x74], edi
mov dword [esp + 0x48], edi
je 0x4b5899
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x4b5899
mov ecx, dword [esi + 0xcc]
push ecx
push eax
lea ecx, [esp + 0x228]
call fcn.00496690
cmp ax, di
jle 0x4b5899
movsx eax, ax
xor edx, edx
cmp eax, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x80], eax
jle 0x4b5612
lea ebx, [esi + 0xe4]
mov dword [esp + 0x70], ebx
jmp 0x4b50df
or ebp, 0xffffffff
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x120]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x224]
stosb byte es:[edi], al
call fcn.004967d0
lea ecx, [esp + 0x220]
call fcn.00496da0
mov ecx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x220]
call fcn.004c7ce0
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x3c]
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, ebx
call fcn.004b75e0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x4b5152
mov edx, dword [esp + 0x3c]
mov edi, dword [ecx + 0xc]
cmp edx, edi
jb 0x4b5152
lea eax, [esp + 0x38]
jmp 0x4b515a
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov eax, dword [eax]
mov ecx, dword [esi + 0xe8]
cmp eax, ecx
mov dword [esp + 0x7c], eax
je 0x4b5348
lea ecx, [esp + 0x7c]
call fcn.004b6780
mov edi, eax
mov al, byte [edi + 8]
add edi, 8
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x40], esp
mov ecx, edi
mov dword [esp + 0x40], esi
mov byte [esi], al
call fcn.00481290
test eax, eax
jge 0x4b519b
xor eax, eax
shl eax, 4
push eax
call fcn.004dbc04
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408220
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
add edi, 0x10
lea ecx, [esi + 0x10]
push edi
mov byte [esp + 0x13e0], 2
call fcn.00405d60
lea ecx, [esp + 0x70]
mov byte [esp + 0x13dc], 1
call fcn.0046ee30
lea ecx, [esp + 0x4c]
call fcn.0046f260
test ax, ax
jle 0x4b55f1
push 0
lea ecx, [esp + 0x50]
call fcn.0046f250
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4b521c
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x13c8]
sub edx, ecx
sar edx, 2
cmp eax, edx
jb 0x4b5227
mov dword [esp + 0x13c8], 0
mov eax, dword [esp + 0x13c8]
xor edi, edi
lea ebp, [eax + 1]
test ebp, ebp
jle 0x4b52d5
push 0
lea ecx, [esp + 0x50]
call fcn.0046f250
mov eax, dword [eax + 4]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x18]
call fcn.00453d70
lea ecx, [esp + 0x14]
mov byte [esp + 0x13b8], 3
xor esi, esi
call fcn.00454280
test ax, ax
jle 0x4b52bb
push 0
lea ecx, [esp + 0x50]
call fcn.0046f250
mov ebx, dword [eax + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.004541f0
mov dl, al
mov ecx, ebx
mov byte [esp + 0x13], dl
call fcn.00454280
movsx edx, ax
imul edx, edi
mov al, byte [esp + 0x13]
add edx, esi
lea ecx, [esp + 0x14]
inc esi
mov byte [esp + edx + 0x120], al
call fcn.00454280
movsx ecx, ax
cmp esi, ecx
jl 0x4b526e
mov ebx, dword [esp + 0x70]
lea ecx, [esp + 0x14]
mov byte [esp + 0x13b8], 1
call fcn.00453ea0
inc edi
cmp edi, ebp
jl 0x4b523b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x15c]
test ecx, ecx
je 0x4b5324
xor edx, edx
mov dx, word [eax + 0x160]
mov eax, dword [esp + 0x258]
cmp edx, eax
jne 0x4b55f1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
add ecx, 0x130
push eax
lea edx, [esp + 0x124]
push ecx
push edx
lea ecx, [esp + 0x22c]
call fcn.004962e0
jmp 0x4b55f1
mov ecx, dword [esp + 0x44]
add eax, 0x130
push ecx
lea edx, [esp + 0x124]
push eax
push edx
lea ecx, [esp + 0x22c]
call fcn.004962e0
jmp 0x4b55f1
lea eax, [esp + 0x4c]
push 0
push eax
lea ecx, [esp + 0x7c]
push 3
push ecx
mov ecx, dword [esi + 0xd4]
push 0
lea edx, [esp + 0x134]
push 0
lea eax, [esp + 0x238]
push edx
push eax
call fcn.0048d260
test eax, eax
je 0x4b55f5
push ebp
lea ecx, [esp + 0x124]
push 0
push ecx
lea ecx, [esp + 0x22c]
call fcn.004962e0
lea ecx, [esp + 0xb0]
call fcn.00453d60
lea ecx, [esp + 0xb4]
mov byte [esp + 0x13b8], 4
call fcn.0046ec80
push ecx
lea ecx, [esp + 0x50]
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x13c0], 5
call fcn.0046f1a0
lea ecx, [esp + 0xb4]
call fcn.00454080
mov al, byte [esp + 0x4c]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x40], esp
lea ecx, [esp + 0x70]
mov dword [esp + 0x40], esi
mov byte [esi], al
call fcn.00481290
test eax, eax
jge 0x4b53fb
xor eax, eax
shl eax, 4
push eax
call fcn.004dbc04
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408220
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
add esi, 0x10
lea eax, [esp + 0x80]
push eax
mov ecx, esi
mov byte [esp + 0x13e0], 6
call fcn.00408160
mov cl, byte [esp + 0x90]
mov byte [esp + 0x13dc], 5
mov byte [esi + 0x10], cl
lea ecx, [esp + 0xd8]
call fcn.0046ee30
lea ecx, [esp + 0x220]
call fcn.004c7ce0
mov dword [esp + 0x84], eax
lea eax, [esp + 0xb0]
lea edx, [esp + 0x88]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x20], edx
call fcn.00453d70
lea ecx, [esp + 0x8c]
lea edx, [esp + 0xb4]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0x13bc], 7
call fcn.004080f0
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0x13bc], 8
call fcn.00405d60
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x88]
mov dword [esp + 0xd8], ecx
lea edx, [esp + 0xdc]
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13bc], 9
mov dword [esp + 0x38], edx
call fcn.00453d70
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x8c]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x13bc], 0xa
call fcn.004080f0
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xf0]
push eax
mov byte [esp + 0x13bc], 0xb
call fcn.00405d60
lea ecx, [esp + 0xd8]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x13c0], 0xc
call fcn.004b6a50
lea eax, [esp + 0xdc]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13b8], 0xd
call fcn.0046ed80
lea ecx, [esp + 0xdc]
mov byte [esp + 0x13b8], 9
call fcn.00453ea0
lea ecx, [esp + 0x88]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13b8], 0xe
call fcn.0046ed80
lea ecx, [esp + 0x88]
mov byte [esp + 0x13b8], 5
call fcn.00453ea0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x13b8], 0xf
call fcn.0046ed80
lea ecx, [esp + 0xb0]
mov byte [esp + 0x13b8], 1
call fcn.00453ea0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x80]
inc edx
cmp edx, eax
mov dword [esp + 0x40], edx
jl 0x4b50dc
or ebp, 0xffffffff
xor edi, edi
cmp word [esp + 0x3a4], 1
jb 0x4b5899
mov eax, dword [esi + 0x15c]
mov dword [esp + 0x30], edi
cmp eax, edi
je 0x4b5640
xor edx, edx
lea eax, [esp + 0x30]
mov dx, word [esi + 0x160]
push edx
push eax
jmp 0x4b5646
lea ecx, [esp + 0x30]
push ebp
push ecx
lea ecx, [esp + 0x228]
call fcn.004960e0
mov ebp, eax
xor edi, edi
cmp ebp, edi
jbe 0x4b586a
mov eax, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x14], eax
mov edx, eax
mov byte [esp + 0x17], al
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x15], cl
lea ecx, [esp + 0xd8]
shr eax, 0x18
mov byte [esp + 0x16], dl
mov byte [esp + 0x14], al
call fcn.004cafc0
mov edx, dword [esi + 0xcc]
lea ecx, [esp + 0xd8]
push edx
mov byte [esp + 0x13bc], 0x10
call fcn.00485300
test eax, eax
jne 0x4b56e3
lea ecx, [esp + 0xd8]
mov byte [esp + 0x13b8], 1
call fcn.004cb120
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13b8], 0
call fcn.0046ed80
mov dword [esp + 0x13b8], 0xffffffff
jmp 0x4b58b1
mov al, byte [esp + 0x13]
mov dword [esp + 0x24], edi
mov byte [esp + 0x20], al
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov edi, 0x512a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00401d50
test al, al
je 0x4b5741
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
mov esi, 0x512a68
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
mov edx, dword [esi + 0x7c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x13c8], 0x11
call fcn.004cb1c0
mov ecx, dword [esp + 0x28]
mov eax, dword [0x4f4164]
mov ebp, ecx
cmp eax, ebp
jae 0x4b5775
mov ebp, eax
mov ebx, dword [esp + 0x13c0]
lea edx, [esp + 0x20]
cmp ebx, edx
jne 0x4b579d
push eax
push ebp
mov ecx, ebx
call fcn.0041e800
push 0
push 0
mov ecx, ebx
call fcn.0041e800
jmp 0x4b5823
test ebp, ebp
jbe 0x4b57e9
cmp ebp, ecx
jne 0x4b57e9
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4b57b2
mov eax, 0x4f4178
cmp byte [eax - 1], 0xfe
jae 0x4b57e9
push 1
mov ecx, ebx
call fcn.004019e0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4b57ce
mov eax, 0x4f4178
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4b5823
push 1
push ebp
mov ecx, ebx
call fcn.00401d50
test al, al
je 0x4b5823
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x4b5804
mov esi, 0x4f4178
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x4b584a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4b5841
cmp al, 0xff
je 0x4b5841
dec al
mov byte [ecx], al
jmp 0x4b584a
push ecx
call fcn.004db420
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x13b8], 1
call fcn.004cb120
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13b8], 0
call fcn.0046ed80
lea ecx, [esp + 0x220]
mov dword [esp + 0x13b8], 0xffffffff
call fcn.00495fe0
mov eax, 1
jmp 0x4b58bf
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13b8], 0
call fcn.0046ed80
mov dword [esp + 0x13b8], ebp
lea ecx, [esp + 0x220]
call fcn.00495fe0
xor eax, eax
mov ecx, dword [esp + 0x13b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13ac
ret 0xc