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

Disassembly:
mov eax, dword [ebx + 0x22004]
sub esp, 0x94
push esi
push edi
lea edx, [ebx + 0x1b00]
mov ecx, 0x20
mov esi, edx
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x22000]
cmp eax, dword [ecx]
jne 0x4a80919f
xor eax, eax
jmp 0x4a8091ee
mov esi, dword [ebx + 0x22010]
lea edi, [esi + 0x20]
cmp edi, dword [ebx + 0x2200c]
jg 0x4a8091ba
test esi, esi
mov dword [ebx + 0x22010], edi
jge 0x4a8091d0
mov eax, dword [esp + 0xa4]
pop edi
mov dword [eax], 7
pop esi
add esp, 0x94
ret
lea edi, [ecx + esi*4]
lea ecx, [edi + 0x80]
cmp edi, ecx
jae 0x4a8091ea
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
rep stosd dword es:[edi], eax
neg esi
mov eax, esi
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], eax
mov dword [edx + 0x70], eax
mov dword [edx + 0x74], eax
mov dword [edx + 0x78], eax
mov dword [edx + 0x7c], eax
mov eax, 0x800
lea ecx, [ebx + 0x2000]
push ebp
mov dword [esp + 0xc], eax
mov ebp, 0x10000
mov dword [esp + 0x10], ecx
mov ecx, ebp
sar ecx, 5
cmp dword [ebx + ecx*4], 0
je 0x4a8093ad
and ebp, 0xfffffc00
mov esi, ebp
sar esi, 5
push esi
push eax
mov edi, ebx
mov dword [esp + 0x20], esi
call fcn.4a8090c0
mov dword [esp + 0x24], eax
add eax, 0x20
push eax
push ebp
push ebx
call dword [esp + 0xb8]
mov edx, ebp
sar edx, 0xa
mov dword [esp + 0x28], eax
mov al, byte [ebx + 0x22017]
sub edx, 0x2840
add esp, 0x14
test al, al
movzx edx, dx
jne 0x4a8092e5
cmp edx, 0x10ffff
ja 0x4a8092e5
mov ecx, edx
sar ecx, 5
mov ecx, dword [ebx + ecx*4]
test ecx, ecx
jge 0x4a8092d3
neg ecx
mov edi, edx
and edi, 0x1f
add edi, ecx
mov ecx, dword [ebx + 0x22000]
mov ecx, dword [ecx + edi*4]
jmp 0x4a8092e7
xor ecx, ecx
cmp dword [esp + 0x14], ecx
je 0x4a8093a1
test al, al
jne 0x4a8093da
cmp edx, 0x10ffff
ja 0x4a8093da
mov ecx, edx
sar ecx, 5
mov edi, dword [ebx + ecx*4]
test edi, edi
jle 0x4a809315
mov eax, edi
jmp 0x4a80935c
mov eax, dword [ebx + 0x22010]
lea esi, [eax + 0x20]
cmp esi, dword [ebx + 0x2200c]
jg 0x4a8093da
test eax, eax
mov dword [ebx + 0x22010], esi
jl 0x4a8093da
lea esi, [edi*4]
mov dword [ebx + ecx*4], eax
mov ecx, dword [ebx + 0x22000]
mov edi, esi
mov esi, ecx
sub esi, edi
lea edi, [ecx + eax*4]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
test eax, eax
jl 0x4a8093da
mov ecx, dword [esp + 0x14]
and edx, 0x1f
add edx, eax
mov eax, dword [ebx + 0x22000]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0xc]
jne 0x4a8093a1
lea eax, [ebx + esi*4]
mov esi, dword [esp + 0x10]
push 0x80
push eax
push esi
call fcn.4a85a140
add dword [esp + 0x18], 0x20
add esp, 0xc
add esi, 0x80
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0xc]
add ebp, 0x400
jmp 0x4a8093b0
add ebp, 0x20
cmp ebp, 0x110000
jl 0x4a809266
cmp eax, 0x8800
jl 0x4a8093f1
mov edx, dword [esp + 0xa8]
pop ebp
pop edi
mov dword [edx], 8
pop esi
add esp, 0x94
ret
mov ecx, dword [esp + 0xa8]
pop ebp
pop edi
mov dword [ecx], 7
pop esi
add esp, 0x94
ret
lea eax, [eax*4 - 0x2000]
push eax
lea eax, [ebx + 0x2000]
push eax
lea ecx, [ebx + 0x2080]
push ecx
call fcn.4a85a140
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, 0x20
lea esi, [esp + 0x20]
lea edi, [ebx + 0x2000]
pop ebp
rep movsd dword es:[edi], dword [esi]
add edx, 0x20
pop edi
mov dword [ebx + 0x22008], edx
pop esi
add esp, 0x94
ret