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

Disassembly:
push 0xffffffffffffffff
push 0x5dda5b
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x10c]
mov ebx, dword [esp + 0x108]
mov esi, dword [esp + 0x104]
xor eax, eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x58], eax
call fcn.004383a0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x58], 1
test ebp, ebp
je 0x4b5899
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0xfc], 2
or eax, 0xffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
xor eax, eax
push eax
push ebp
push ebx
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x4c], 1
mov byte [esp + 0x27], 0
call fcn.0049b090
mov byte [esp + 0xfc], 3
lea esi, [esp + 0x74]
call fcn.0049b160
cmp eax, 1
jne 0x4b568b
mov eax, dword [esp + 0xb4]
cmp eax, 1
jne 0x4b4fe5
mov dword [edi], eax
jmp 0x4b4fec
cmp eax, 2
jne 0x4b4fec
mov dword [edi], eax
mov ecx, dword [esp + 0x98]
cmp word [ecx + 0x5c], 1
jne 0x4b5005
mov edx, dword [esp + 0x114]
mov byte [edx + 0x6c], 1
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0xb0], eax
jbe 0x4b568b
mov dword [esp + 0x28], eax
lea esp, [esp]
mov ecx, dword [esp + 0x90]
test ecx, ecx
jne 0x4b5036
xor esi, esi
mov byte [esp + 0x1f], 0
xor bl, bl
jmp 0x4b50ad
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
mov edx, dword [edx + 0x10]
mov esi, dword [edi + ecx + 0x10]
cmp edx, dword [edi + ecx + 0xc]
lea eax, [edi + ecx]
je 0x4b5075
mov ecx, dword [0x6ebf84]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.00598b64
mov ecx, dword [esp + 0x9c]
add esp, 0xc
mov byte [esp + 0x1f], 0
test eax, eax
jne 0x4b507a
mov byte [esp + 0x1f], 1
test ecx, ecx
jne 0x4b5082
xor bl, bl
jmp 0x4b50ad
test dword [edi + ecx + 0x24], 0x20000000
lea eax, [edi + ecx]
jne 0x4b50ab
mov ecx, dword [0x6ebf8c]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.00598b64
add esp, 0xc
test eax, eax
je 0x4b50ab
xor bl, bl
jmp 0x4b50ad
mov bl, 1
test esi, esi
je 0x4b51f4
test bl, bl
jne 0x4b50c3
cmp byte [esp + 0x1f], bl
je 0x4b51f4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x74]
call fcn.0049b290
test al, al
jne 0x4b51f4
lea eax, [esp + 0x5c]
push eax
call fcn.0041d3b0
mov byte [esp + 0xfc], 4
cmp byte [esp + 0x1f], 0
je 0x4b5144
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x4b5101
or eax, 0xffffffff
jmp 0x4b5109
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax + 0x14]
push esi
push eax
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x50]
call fcn.004b4ce0
add esp, 0xc
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0x5c]
push ecx
mov ebx, eax
call fcn.004b5d80
mov byte [esp + 0xfc], 4
lea edx, [esp + 0xc0]
jmp 0x4b5199
test bl, bl
je 0x4b519f
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x4b5158
or eax, 0xffffffff
jmp 0x4b5160
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax + 0x14]
push esi
push eax
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x50]
call fcn.004b4b30
add esp, 0xc
mov byte [esp + 0xfc], 6
lea ecx, [esp + 0x5c]
push ecx
mov ebx, eax
call fcn.004b5d80
mov byte [esp + 0xfc], 4
lea edx, [esp + 0xd8]
push edx
call fcn.004b5cf0
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
sar eax, 3
test eax, eax
je 0x4b51e2
xor esi, esi
test eax, eax
jbe 0x4b51dd
cmp esi, eax
jb 0x4b51bd
call fcn.0059471a
mov eax, dword [esp + 0x68]
lea edi, [eax + esi*8]
lea eax, [esp + 0x34]
call fcn.004bce80
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
inc esi
sar eax, 3
cmp esi, eax
jb 0x4b51bd
mov byte [esp + 0x17], 1
mov byte [esp + 0xfc], 3
lea ecx, [esp + 0x5c]
push ecx
call fcn.004b5cf0
mov eax, dword [esp + 0x18]
add dword [esp + 0x28], 0x28
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0xb0]
jb 0x4b5020
cmp byte [esp + 0x17], 0
je 0x4b5684
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
xor esi, esi
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.0049b3b0
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
cmp edx, esi
je 0x4b52e7
mov ebx, dword [esp + 0x28]
cmp ebx, esi
je 0x4b52e7
lea eax, [ebx + edx]
cmp eax, ebp
ja 0x4b52e7
cmp ebx, 0x100000
jb 0x4b527b
mov ebx, 0x100000
mov ecx, dword [esp + 0x108]
push ecx
lea eax, [esp + 0x24]
push eax
mov edi, ebp
call fcn.004b3690
mov byte [esp + 0x104], 7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004bced0
add esp, 0x14
mov byte [esp + 0xfc], 8
mov ebx, dword [esp + 0x110]
call fcn.0040d9a0
mov byte [esp + 0xfc], 7
lea ecx, [esp + 0x18]
call fcn.0040b720
mov byte [esp + 0xfc], 3
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
xor esi, esi
mov ecx, dword [esp + 0x98]
mov edi, dword [ecx + 0x28]
lea eax, [esp + 0x74]
call fcn.0049b520
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
mov dword [esp + 0x18], esi
cmp dword [esp + 0xb0], esi
jbe 0x4b5456
mov dword [esp + 0x28], 0
mov eax, dword [0x6e9718]
mov edx, dword [eax + 0xc]
mov ecx, 0x6e9718
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov byte [esp + 0xfc], 0xa
mov dword [esp + 0x24], 0
mov bl, 0xb
mov byte [esp + 0xfc], bl
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x4b5363
or eax, 0xffffffff
jmp 0x4b536b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x78]
push eax
call fcn.0049b310
mov byte [esp + 0xfc], 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4b53dc
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4b53cb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4b53cb
call fcn.0040f5a0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4b53c2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x4b53dc
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.0040f500
mov ebp, dword [esp + 0x20]
mov byte [esp + 0xfc], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b5403
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x114]
lea ebx, [esp + 0x20]
add edi, 0x48
call fcn.004b5a60
mov byte [esp + 0xfc], 3
add ebp, 0xfffffff0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b543b
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x18]
add dword [esp + 0x28], 0x28
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0xb0]
jb 0x4b5324
mov esi, dword [esp + 0x114]
push esi
lea ecx, [esp + 0x78]
call fcn.0049b5b0
lea edx, [esp + 0x74]
lea ecx, [esp + 0x18]
call fcn.004ba830
mov ebp, eax
mov byte [esp + 0xfc], 0x10
mov edi, dword [esi + 0x60]
xor ebx, ebx
add dword [edi + 8], 0xffffffff
jne 0x4b549f
cmp dword [edi + 4], ebx
je 0x4b549f
mov eax, dword [edi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov eax, dword [ebp]
inc dword [eax + 8]
mov dword [esi + 0x60], eax
mov byte [esp + 0xfc], 3
mov eax, dword [esp + 0x18]
dec dword [eax + 8]
mov edi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x4b54e7
cmp dword [edi + 4], ebx
je 0x4b54d6
mov eax, dword [edi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov eax, dword [esp + 0x18]
push eax
call fcn.0059392f
add esp, 4
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x74]
lea ecx, [esp + 0x18]
call fcn.004bab60
mov ebp, eax
mov byte [esp + 0xfc], 0x11
mov edi, dword [esi + 0x64]
add dword [edi + 8], 0xffffffff
jne 0x4b551d
cmp dword [edi + 4], ebx
je 0x4b551d
mov eax, dword [edi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov eax, dword [ebp]
inc dword [eax + 8]
mov dword [esi + 0x64], eax
mov byte [esp + 0xfc], 3
mov eax, dword [esp + 0x18]
dec dword [eax + 8]
mov edi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x4b5565
cmp dword [edi + 4], ebx
je 0x4b5554
mov eax, dword [edi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10c]
push edx
lea edx, [esp + 0x78]
lea ecx, [esp + 0x1c]
call fcn.004ba220
add esp, 4
mov edi, eax
mov byte [esp + 0xfc], 0x12
mov ebp, dword [esi + 0x68]
add dword [ebp + 8], 0xffffffff
jne 0x4b55a8
cmp dword [ebp + 4], ebx
je 0x4b55a8
mov eax, dword [ebp]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov eax, dword [edi]
inc dword [eax + 8]
mov dword [esi + 0x68], eax
mov byte [esp + 0xfc], 3
mov eax, dword [esp + 0x18]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x4b55ef
cmp dword [esi + 4], ebx
je 0x4b55de
mov eax, dword [esi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x18]
push eax
call fcn.0059392f
add esp, 4
mov dword [esp + 0x18], ebx
xor eax, eax
cmp dword [esp + 0x50], eax
ja 0x4b5672
mov edx, dword [esp + 0x4c]
jb 0x4b5606
cmp edx, dword [esp + 0x10c]
jae 0x4b5672
mov eax, dword [esp + 0x10c]
sub eax, edx
cmp eax, 0x4000
jbe 0x4b561b
mov eax, 0x4000
mov ecx, dword [esp + 0x108]
mov edi, dword [esp + 0x10c]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ebx, eax
call fcn.004b3690
add esp, 8
mov byte [esp + 0xfc], 0x13
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x4b565e
cmp dword [esp + 0x24], ebx
je 0x4b565e
lea edi, [esp + 0x20]
lea eax, [esp + 0x34]
call fcn.004bce80
jmp 0x4b5662
mov byte [esp + 0x17], bl
mov byte [esp + 0xfc], 3
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp byte [esp + 0x17], 0
jne 0x4b57f0
mov ebp, dword [esp + 0x10c]
cmp byte [esp + 0x3c], 0
je 0x4b56b4
cmp dword [esp + 0x108], 0
je 0x4b56af
xor eax, eax
test ebp, ebp
jbe 0x4b56b4
mov ecx, dword [esp + 0x108]
cmp byte [eax + ecx], 0
jne 0x4b56af
inc eax
cmp eax, ebp
jb 0x4b56a2
jmp 0x4b56b4
mov byte [esp + 0x3c], 0
mov ecx, dword [esp + 0x108]
mov eax, ebp
lea esi, [esp + 0x34]
call fcn.004bcde0
cmp ebp, 0x30000
ja 0x4b5739
cmp ebp, 0x10000
jbe 0x4b57f0
mov edx, dword [esp + 0x108]
push edx
lea eax, [esp + 0x24]
lea ebx, [ebp - 0x10000]
push eax
mov edx, 0x10000
mov edi, ebp
call fcn.004b3690
add esp, 8
mov byte [esp + 0xfc], 0x14
xor esi, esi
cmp dword [esp + 0x20], esi
je 0x4b5724
cmp dword [esp + 0x24], esi
je 0x4b5724
lea edi, [esp + 0x20]
lea eax, [esp + 0x34]
call fcn.004bce80
mov byte [esp + 0x17], 1
mov byte [esp + 0xfc], 3
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
jmp 0x4b57e9
mov ecx, dword [esp + 0x108]
mov edx, ebp
shr edx, 1
push ecx
lea eax, [esp + 0x30]
sub edx, 0x8000
push eax
mov ebx, 0x10000
mov edi, ebp
call fcn.004b3690
add esp, 8
mov byte [esp + 0xfc], 0x15
cmp dword [esp + 0x2c], 0
je 0x4b57d7
cmp dword [esp + 0x30], 0
je 0x4b57d7
lea edi, [esp + 0x2c]
lea eax, [esp + 0x34]
call fcn.004bce80
mov ecx, dword [esp + 0x108]
push ecx
lea eax, [esp + 0x24]
lea edx, [ebp - 0x10000]
push eax
mov edi, ebp
call fcn.004b3690
add esp, 8
mov byte [esp + 0xfc], 0x16
xor esi, esi
cmp dword [esp + 0x20], esi
je 0x4b57c7
cmp dword [esp + 0x24], esi
je 0x4b57c7
lea edi, [esp + 0x20]
lea eax, [esp + 0x34]
call fcn.004bce80
mov byte [esp + 0x17], 1
mov byte [esp + 0xfc], 0x15
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0xfc], 3
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cmp byte [esp + 0x17], 0
je 0x4b586c
cmp byte [esp + 0x3c], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
not eax
not ecx
jne 0x4b586c
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004b58c0
add esp, 0xc
mov ebx, eax
mov byte [esp + 0xfc], 0x17
mov ebp, dword [esp + 0x104]
mov esi, dword [ebp]
add dword [esi + 8], 0xffffffff
jne 0x4b5833
xor edi, edi
call fcn.0043b870
mov eax, dword [ebx]
inc dword [eax + 8]
mov dword [ebp], eax
mov byte [esp + 0xfc], 3
mov eax, dword [esp + 0x18]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x4b586c
xor edi, edi
call fcn.0043b870
mov edx, dword [esp + 0x18]
push edx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0xfc], 2
lea eax, [esp + 0x74]
push eax
call fcn.0049c270
mov byte [esp + 0xfc], 0
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x104]
jmp 0x4b589b
mov eax, esi
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret