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

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa8]
xor ebx, ebx
push edi
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004aa370
push 0x100854a4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004aa370
mov eax, dword [0x100b7164]
push 0x10085490
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004aae80
add esp, 0xc
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004aaf30
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x4f8c5f
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4f8c70
push eax
call fcn.004c17d0
add esp, 4
push 0x10078be0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004aaf30
mov eax, dword [eax]
push eax
push esi
call fcn.004c8d30
add esp, 0x14
test eax, eax
jne 0x4f8cac
mov eax, dword [esp + 0x4c]
push 1
push eax
push esi
call fcn.004c86e0
add esp, 0xc
test eax, eax
mov byte [esp + 0x13], bl
jne 0x4f8cb1
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4f8cc2
push eax
call fcn.004c17d0
add esp, 4
cmp byte [esp + 0x13], bl
je 0x4f8ddc
mov ecx, dword [esp + 0x50]
lea edx, [esi + ecx*2]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004aa370
mov esi, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x44]
call fcn.004aa370
cmp esi, ebx
je 0x4f8d04
push esi
call fcn.004c17d0
add esp, 4
push 0x100854a4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004aa370
mov ecx, dword [0x100b7164]
lea eax, [esp + 0x40]
push eax
push 0x1008546c
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004aae80
add esp, 0xc
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.004aaf30
add esp, 0xc
push eax
lea edx, [esp + 0x34]
push edx
call fcn.004aae80
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
call fcn.004aa370
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4f8d86
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4f8da3
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4f8dc0
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4f8dd1
push eax
call fcn.004c17d0
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xac], ecx
push 0x100854a4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004aa370
mov edx, dword [0x100b7164]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004aae80
mov edx, dword [eax]
add esp, 0xc
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x68], 0x80000001
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.004aa370
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4f8e4c
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4f8e5d
push eax
call fcn.004c17d0
add esp, 4
push 0x1008544c
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], 0x80000003
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.004aa370
push 0x100853c0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x88], 0x80000005
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.004aa370
push 0x10085398
lea ecx, [esp + 0x9c]
mov dword [esp + 0x98], 0x80000002
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.004aa370
lea eax, [esp + 0x68]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx]
mov esi, dword [0x100780bc]
push ebp
call esi
mov edx, dword [esp + 0xac]
push edx
mov edi, eax
call esi
cmp eax, edi
jl 0x4f8f61
push ebp
call esi
mov esi, eax
add esi, 1
mov edi, ebx
mov eax, ebx
je 0x4f8f30
lea eax, [esi + esi]
push eax
call fcn.004c1680
mov edi, eax
add esp, 4
mov eax, esi
mov esi, dword [esp + 0xac]
push eax
push esi
push edi
call dword [0x100781d8]
push 1
push ebp
push edi
call fcn.004c86e0
add esp, 0xc
test eax, eax
je 0x4f901f
cmp edi, ebx
je 0x4f8f61
push edi
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x3c]
add dword [esp + 0x38], 0x10
add eax, 1
cmp eax, 4
mov dword [esp + 0x3c], eax
jb 0x4f8ef3
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov dword [ecx], ebx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004aa370
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xb4]
push esi
call fcn.004aa370
cmp esi, ebx
je 0x4f8fbe
push esi
call fcn.004c17d0
add esp, 4
mov edi, 3
lea esi, [esp + 0xa8]
lea ebx, [ebx]
mov eax, dword [esi - 0x10]
sub esi, 0x10
cmp eax, ebx
je 0x4f8feb
push eax
call fcn.004c17d0
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x4f8fd0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4f9001
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4f9012
push eax
call fcn.004c17d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0xc
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [esp + 0xb0]
push eax
mov dword [edx], ecx
call dword [0x100780bc]
cmp word [esi + eax*2], 0x5c
lea eax, [esi + eax*2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x14]
jne 0x4f9055
add eax, 2
push eax
call fcn.004aa370
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xb4]
push esi
call fcn.004aa370
cmp esi, ebx
je 0x4f9079
push esi
call fcn.004c17d0
add esp, 4
cmp edi, ebx
je 0x4f9086
push edi
call fcn.004c17d0
add esp, 4
mov edi, 3
lea esi, [esp + 0xa8]
mov eax, dword [esi - 0x10]
sub esi, 0x10
cmp eax, ebx
je 0x4f90ad
push eax
call fcn.004c17d0
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x4f9092
jmp 0x4f8ff0