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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c8a60
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10113790]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
lea ebp, [edi + 0x34]
mov esi, 0x10112468
push ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x64], ebp
call dword [0x100d32bc]
xor ebx, ebx
mov dword [esp + 0x110], ebx
cmp dword [0x10112468], ebx
je 0x4fbe69
mov ebp, dword [edi + 0x74]
sub ebp, dword [edi + 0x70]
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
sar ebp, 2
mov dword [esp + 0x24], ecx
test cl, 1
je 0x4fbc7f
mov ebp, eax
mov eax, dword [edi + 0x5c]
sub eax, dword [edi + 0x58]
lea esi, [edi + 0x4c]
sar eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], ebp
cmp eax, ebx
jne 0x4fb8a1
xor ecx, ecx
jmp 0x4fb8a9
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x4fb8c1
mov dword [edi], ebp
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x4fb8e2
cmp eax, edi
jbe 0x4fb8ca
call fcn.005465df
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
lea edx, [esp + 0xc8]
push edx
mov ecx, esi
call fcn.004f81b0
cmp dword [ebp + 0x24], ebx
je 0x4fbaec
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xa
mov edx, dword [ebp + 0x24]
push ebx
push 0x2c
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
mov byte [esp + 0x124], 1
call fcn.004f0740
lea eax, [esp + 0x7c]
push eax
call fcn.004f1160
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fb957
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 2
jb 0x4fbadc
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004f0f20
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x114], 2
call fcn.004f0f20
mov ebp, dword [esp + 0x5c]
xor eax, eax
mov word [esp + 0x44], ax
mov esi, 7
mov eax, ebp
mov byte [esp + 0x110], 3
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
lea edx, [eax + 2]
jmp 0x4fb9b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4fb9b0
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x48]
call fcn.004f6b40
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x7c
mov byte [esp + 0x114], 4
call fcn.004fb6d0
cmp dword [esp + 0x58], 8
mov edi, eax
mov byte [esp + 0x110], 3
jb 0x4fba01
mov edx, dword [esp + 0x44]
push edx
call fcn.00536977
add esp, 4
xor eax, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0x74]
mov word [esp + 0x44], ax
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4fba31
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xa0]
call fcn.004f6b40
lea edx, [esp + 0x98]
push edx
mov ecx, edi
mov byte [esp + 0x114], 5
call fcn.004fa250
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
cmp dword [esp + 0xb0], 8
jb 0x4fba85
mov edx, dword [esp + 0x9c]
push edx
call fcn.00536977
add esp, 4
lea eax, [esi - 0x10]
mov byte [esp + 0x110], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fbaa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x110], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fbacd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 2
jae 0x4fb962
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], bl
call 0x560650
cmp dword [ebp + 0x28], ebx
je 0x4fbc77
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xa
mov edx, dword [ebp + 0x28]
push ebx
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
mov byte [esp + 0x124], 6
call fcn.004f0740
lea eax, [esp + 0x80]
push eax
call fcn.004f1160
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fbb64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], ebx
je 0x4fbc67
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ebp, 0x9c
mov dword [esp + 0x8c], ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x2c]
call fcn.004f0f20
mov esi, dword [esp + 0x68]
xor eax, eax
mov word [esp + 0x44], ax
mov eax, esi
mov byte [esp + 0x110], 7
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4fbbb5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.004f6b40
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
mov byte [esp + 0x114], 8
call fcn.004fb370
cmp dword [esp + 0x58], 8
mov edi, eax
mov byte [esp + 0x110], 7
jb 0x4fbc01
mov edx, dword [esp + 0x44]
push edx
call fcn.00536977
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xd8]
push ecx
mov ecx, edi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x90], edx
call fcn.004f7490
lea eax, [esi - 0x10]
mov byte [esp + 0x110], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4fbc5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], ebx
jne 0x4fbb83
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], bl
call 0x560650
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test byte [esp + 0x24], 0x54
je 0x4fbd16
mov ecx, dword [edi + 0x70]
add edi, 0x64
cmp ecx, ebx
jne 0x4fbc98
xor eax, eax
jmp 0x4fbca0
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x4fbcbe
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x4fbcdf
cmp ecx, esi
jbe 0x4fbcc7
call fcn.005465df
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push edx
push esi
push eax
lea eax, [esp + 0xd0]
push eax
mov ecx, edi
call fcn.004f81b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xf0]
push edx
add ecx, 0xbc
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebp
call fcn.004f7490
mov edi, dword [esp + 0x18]
test byte [esp + 0x24], 0xa8
je 0x4fbdb0
mov ecx, dword [edi + 0x70]
add edi, 0x64
cmp ecx, ebx
jne 0x4fbd2f
xor eax, eax
jmp 0x4fbd37
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x4fbd55
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x4fbd76
cmp ecx, esi
jbe 0x4fbd5e
call fcn.005465df
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push edx
push esi
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.004f81b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xe4]
push edx
add ecx, 0xdc
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ebp
call fcn.004f7490
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, 0x100
jne 0x4fbdc3
test al, 2
je 0x4fbe52
mov ecx, dword [edi + 0x70]
add edi, 0x64
cmp ecx, ebx
jne 0x4fbdd1
xor eax, eax
jmp 0x4fbdd9
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x4fbdf7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x4fbe18
cmp ecx, esi
jbe 0x4fbe00
call fcn.005465df
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push edx
push esi
push eax
lea eax, [esp + 0xd8]
push eax
mov ecx, edi
call fcn.004f81b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xfc]
push edx
add ecx, 0xfc
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ebp
call fcn.004f7490
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add esi, 4
mov dword [esp + 0x14], esi
cmp dword [esi], ebx
jne 0x4fb865
mov ebp, dword [esp + 0x60]
push ebp
call dword [0x100d32b8]
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret