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

Disassembly:
push 0xffffffffffffffff
push 0x946e06
mov eax, dword fs:[0]
push eax
sub esp, 0x524
push ebx
push ebp
push esi
push edi
mov eax, dword [0x99986c]
xor eax, esp
push eax
lea eax, [esp + 0x538]
mov dword fs:[0], eax
mov edi, dword [esp + 0x548]
push 0
push 0x18
lea eax, [esp + 0x68]
push eax
push 0
push edi
call dword [0x982300]
test eax, eax
jl 0x84a790
mov eax, dword [esp + 0x64]
mov esi, dword [0x9822dc]
lea ecx, [esp + 0x20]
push ecx
push 0x228
lea edx, [esp + 0x88]
push edx
push eax
push edi
call esi
test eax, eax
jl 0x84a790
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x84a39b
mov eax, 0xc000003e
jmp 0x84a790
lea ecx, [esp + 0x20]
push ecx
push 0x290
lea edx, [esp + 0x2b0]
push edx
push eax
push edi
call esi
test eax, eax
jl 0x84a790
mov eax, dword [esp + 0x2a8]
push eax
lea ecx, [esp + 0x40]
call fcn.00847e30
mov dword [esp + 0x540], 0
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x40]
call fcn.0089fe50
mov ecx, eax
call fcn.008b0b30
mov ecx, dword [esp + 0x90]
mov ebp, eax
mov eax, dword [esp + 0x2a8]
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push ecx
push edi
call esi
mov esi, eax
test esi, esi
jl 0x84a6d1
mov eax, dword [esp + 0x90]
neg eax
test byte [ebp + 8], 1
je 0x84a48a
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x84a42a
add ecx, eax
mov dword [ebp + 0x28], ecx
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x84a436
add ecx, eax
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x84a442
add ecx, eax
mov dword [ebp + 0x3c], ecx
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x84a44e
add ecx, eax
mov dword [ebp + 0x44], ecx
mov ecx, dword [ebp + 0x74]
test ecx, ecx
je 0x84a45a
add ecx, eax
mov dword [ebp + 0x74], ecx
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x84a466
add ecx, eax
mov dword [ebp + 0x7c], ecx
mov ecx, dword [ebp + 0x84]
test ecx, ecx
je 0x84a478
add ecx, eax
mov dword [ebp + 0x84], ecx
mov ecx, dword [ebp + 0x8c]
test ecx, ecx
je 0x84a48a
add ecx, eax
mov dword [ebp + 0x8c], ecx
mov edi, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x54c]
add edi, 3
and edi, 0xfffffffc
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x84a4c7
mov eax, ebx
lea edx, [eax + 2]
jmp 0x84a4b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x84a4b0
sub eax, edx
sar eax, 1
lea edx, [edi + eax*2 + 2]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x550]
test eax, eax
je 0x84a4f0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x84a4d5
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
lea edx, [ecx + eax*2 + 2]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.00847e30
mov byte [esp + 0x540], 1
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
call fcn.0089fe50
mov ecx, eax
call fcn.008b0b30
mov edx, dword [esp + 0x2a8]
push edx
mov esi, eax
push 0
push ebp
lea eax, [esp + 0x30]
call fcn.008472d0
add esp, 0xc
test ebx, ebx
je 0x84a579
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x84a540
sub eax, edx
sar eax, 1
add eax, eax
mov word [esi + 0x38], ax
mov word [esi + 0x3a], ax
movzx eax, ax
add eax, 2
push eax
push edi
push ebx
lea eax, [esp + 0x30]
mov dword [esi + 0x3c], edi
call fcn.008472d0
movzx ecx, word [esi + 0x38]
add esp, 0xc
lea edi, [edi + ecx + 2]
mov ebx, dword [esp + 0x550]
test ebx, ebx
je 0x84a5c1
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x84a590
sub eax, edx
sar eax, 1
add eax, eax
movzx edx, ax
add edx, 2
push edx
mov word [esi + 0x40], ax
mov word [esi + 0x42], ax
push edi
push ebx
lea eax, [esp + 0x30]
mov dword [esi + 0x44], edi
call fcn.008472d0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x548]
push 4
mov dword [esi + 4], eax
push 0x101000
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x30], 0
call dword [0x982334]
mov edi, eax
test edi, edi
jge 0x84a627
mov byte [esp + 0x540], 0
lea ecx, [esp + 0x24]
call fcn.009343d0
mov dword [esp + 0x540], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.009343d0
mov eax, edi
jmp 0x84a790
mov edx, dword [esp + 0x1c]
mov dword [esi], edx
test byte [ebp + 8], 1
je 0x84a6a3
mov ecx, dword [esi + 0x28]
mov eax, dword [esp + 0x18]
test ecx, ecx
je 0x84a643
add ecx, eax
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x84a64f
add ecx, eax
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x84a65b
add ecx, eax
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x84a667
add ecx, eax
mov dword [esi + 0x44], ecx
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x84a673
add ecx, eax
mov dword [esi + 0x74], ecx
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x84a67f
add ecx, eax
mov dword [esi + 0x7c], ecx
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x84a691
add ecx, eax
mov dword [esi + 0x84], ecx
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x84a6a3
add ecx, eax
mov dword [esi + 0x8c], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
push ecx
push esi
push edx
push ebx
call dword [0x9822e0]
mov esi, eax
test esi, esi
jge 0x84a6ec
mov byte [esp + 0x540], 0
lea ecx, [esp + 0x24]
call fcn.009343d0
mov dword [esp + 0x540], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.009343d0
mov eax, esi
jmp 0x84a790
mov eax, dword [esp + 0x558]
test eax, eax
je 0x84a700
mov ecx, dword [esp + 0x88]
mov dword [eax], ecx
mov eax, dword [esp + 0x554]
test eax, eax
je 0x84a712
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
push 1
push 4
lea ecx, [esp + 0x90]
mov edi, eax
push ecx
add eax, 8
push eax
push ebx
mov dword [esp + 0xa4], edx
call fcn.008e7e60
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x84a6c0
push 1
push 4
lea edx, [esp + 0x98]
push edx
add edi, 0x10
push edi
push ebx
call fcn.008e7e60
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x84a6c0
mov byte [esp + 0x540], 0
lea ecx, [esp + 0x24]
call fcn.009343d0
mov dword [esp + 0x540], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.009343d0
xor eax, eax
mov ecx, dword [esp + 0x538]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x530
ret