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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov ecx, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 0x1b00]
mov esi, eax
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x22000]
mov ecx, dword [ebx + 0x22004]
cmp ecx, dword [esi]
jne 0x4a81c488
xor edx, edx
jmp 0x4a81c4cf
mov edx, dword [ebx + 0x22010]
lea ecx, [edx + 0x20]
cmp ecx, dword [ebx + 0x2200c]
jg 0x4a81c6ef
mov dword [ebx + 0x22010], ecx
test edx, edx
js 0x4a81c6ef
lea edi, [esi + edx*4]
lea ecx, [edi + 0x80]
cmp edi, ecx
jae 0x4a81c4cd
mov eax, dword [ebx + 0x22004]
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x1b00]
neg edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edi, 0x800
lea eax, [ebx + 0x2000]
mov dword [ebp - 8], edi
mov esi, 0x10000
mov dword [ebp - 4], eax
mov eax, esi
sar eax, 5
cmp dword [ebx + eax*4], 0
je 0x4a81c689
and esi, 0xfffffc00
mov eax, esi
sar eax, 5
push eax
push edi
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.4a81c090
lea ecx, [eax + 0x20]
push ecx
push esi
push ebx
mov dword [ebp - 0x14], eax
call dword [ebp + 0xc]
mov dl, byte [ebx + 0x22017]
mov ecx, esi
sar ecx, 0xa
sub ecx, 0x2840
movzx ecx, cx
add esp, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
test dl, dl
jne 0x4a81c5c7
cmp ecx, 0x10ffff
ja 0x4a81c5c7
mov eax, ecx
sar eax, 5
and ecx, 0x1f
mov eax, dword [ebx + eax*4]
cdq
xor eax, edx
sub eax, edx
mov dl, byte [ebx + 0x22017]
add eax, ecx
mov ecx, dword [ebx + 0x22000]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x10]
jmp 0x4a81c5c9
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x4a81c681
test dl, dl
jne 0x4a81c6ef
cmp ecx, 0x10ffff
ja 0x4a81c6ef
mov eax, ecx
sar eax, 5
lea eax, [ebx + eax*4]
mov dword [ebp + 8], eax
mov eax, dword [eax]
test eax, eax
jg 0x4a81c643
mov edx, dword [ebx + 0x22010]
lea ecx, [edx + 0x20]
cmp ecx, dword [ebx + 0x2200c]
jg 0x4a81c6ef
mov dword [ebx + 0x22010], ecx
test edx, edx
js 0x4a81c6ef
mov ecx, dword [ebp + 8]
shl eax, 2
mov dword [ecx], edx
mov ecx, dword [ebx + 0x22000]
mov esi, ecx
sub esi, eax
lea edi, [ecx + edx*4]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov eax, edx
test eax, eax
js 0x4a81c6ef
mov edx, dword [ebp - 0xc]
and ecx, 0x1f
add ecx, eax
mov eax, dword [ebx + 0x22000]
mov dword [eax + ecx*4], edx
cmp dword [ebp - 0x14], edi
jne 0x4a81c681
mov eax, dword [ebp - 0x18]
push 0x80
lea eax, [ebx + eax*4]
push eax
push dword [ebp - 4]
call dword [0x4a89c17c]
add edi, 0x20
add esp, 0xc
sub dword [ebp - 4], 0xffffff80
mov dword [ebp - 8], edi
add esi, 0x400
jmp 0x4a81c68c
add esi, 0x20
cmp esi, 0x110000
jl 0x4a81c544
cmp edi, 0x8800
jl 0x4a81c6b0
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], 8
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi*4 - 0x2000]
push eax
lea edi, [ebx + 0x2000]
lea eax, [ebx + 0x2080]
push edi
push eax
call dword [0x4a89c17c]
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, 0x20
lea esi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
pop edi
add eax, 0x20
pop esi
mov dword [ebx + 0x22008], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], 7
pop ebx
mov esp, ebp
pop ebp
ret