Function at 0x10002090
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x9c
mov edi, dword [ecx]
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x38], edi
mov edi, dword [ecx + 0x18]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x68], ebx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x10002790
mov ecx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov edi, edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
cmp eax, ecx
sbb edi, ebx
jae 0x10002491
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], eax
add esi, eax
adc edi, edx
cmp ecx, esi
mov edx, edi
mov edi, ebx
sbb edi, edx
jae 0x1000211b
sub ecx, dword [ebp - 0x5c]
sbb ebx, dword [ebp - 0x58]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10002450
mov edi, dword [ebp - 0x38]
mov edx, dword [edi + 0x4d8]
test edx, edx
je 0x10002491
nop
lea esi, [esi]
mov eax, dword [ebp - 0x30]
xor ebx, ebx
cmp ebx, eax
sbb ebx, dword [ebp - 0x2c]
jge 0x10002491
mov eax, dword [ebp - 0x68]
mov ebx, dword [edi + 0x4d0]
mov esi, dword [edi + 0x4d4]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add edx, dword [eax]
adc ecx, dword [eax + 4]
mov eax, edx
mov dword [esp + 8], ebx
mov edx, ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivmoddi4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
mov eax, edx
mov edx, ebx
sub edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
mov ecx, esi
mov esi, edx
mov edx, dword [ebp - 0x48]
sbb ecx, dword [ebp - 0x3c]
mov ebx, eax
cmp edx, esi
sbb ebx, ecx
cmovb esi, dword [ebp - 0x30]
lea ebx, [edi + 0x34]
cmovae eax, ecx
mov dword [ebp - 0x8c], esi
lea esi, [edi + 0x1c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x74], esi
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
mov eax, dword [edi + 0x4f8]
mov ecx, dword [ebp - 0x34]
sub esp, 4
mov edx, dword [ebp - 0x38]
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], edx
call sym.___umoddi3
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov esi, edx
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], edx
mov edx, dword [edi + 0x4f4]
xor ecx, dword [edx + eax*8 + 4]
xor esi, dword [edx + eax*8]
or ecx, esi
jne 0x10002259
mov edx, dword [edi + 0x4f0]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x100026b0
mov eax, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], ebx
mov dword [ebp - 0x7c], eax
call eax
mov eax, dword [edi + 0x4e8]
sub esp, 4
test eax, eax
je 0x100027a8
mov eax, dword [edi + 0x4d0]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 0x1800
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x88], eax
call eax
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x4e4]
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call sym.___umoddi3
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x4ec]
cdq
sub ebx, dword [ebp - 0x48]
sbb esi, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov ecx, ebx
mov ebx, esi
cmp dword [ebp - 0x6c], ecx
mov esi, edx
sbb esi, ebx
jb 0x10002312
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
cmp ebx, eax
mov ecx, esi
sbb ecx, edx
jb 0x10002312
sub ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x60], ebx
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x10002548
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x70], ebx
sub ebx, esi
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x60], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x94], eax
jmp 0x10002427
mov eax, ebx
xor edx, edx
div dword [edi + 0x4f8]
mov eax, dword [edi + 0x4f4]
mov dword [eax + edx*8], ebx
mov esi, edx
mov dword [eax + edx*8 + 4], 0
mov eax, dword [edi + 0x4f0]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10002500
mov eax, dword [ebp - 0x64]
xor edx, edx
mov ecx, edx
mov edx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, edi
call sym.__chm_get_cmpblock_bounds
test eax, eax
je 0x100024c0
cmp dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
je 0x100024a8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x40]
call sym.__chm_fetch_bytes.part.0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
xor eax, ecx
xor edx, esi
or edx, eax
jne 0x100024c0
mov eax, dword [edi + 0x4d0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXdecompress
test eax, eax
jne 0x100024c0
mov dword [edi + 0x4ec], ebx
add ebx, 1
cmp ebx, dword [ebp - 0x70]
je 0x1000256a
mov esi, dword [edi + 0x4ec]
cmp ebx, esi
je 0x10002415
mov eax, ebx
xor edx, edx
div dword [edi + 0x4e4]
test edx, edx
jne 0x10002348
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXreset
jmp 0x10002348
mov ebx, dword [ebp - 0x38]
cmp dword [ebx], 0xffffffff
je 0x10002491
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x58]
add eax, dword [edi]
adc edx, dword [edi + 4]
add eax, dword [ebx + 0x60]
adc edx, dword [ebx + 0x64]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x54]
mov dword [esp], eax
mov eax, ebx
call sym.__chm_fetch_bytes.part.0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
xor eax, eax
xor edx, edx
xor edx, esi
xor eax, ecx
or edx, eax
je 0x100023dd
nop
lea esi, [esi]
mov ebx, dword [ebp - 0x40]
mov dword [esp + 4], 0
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x40], 0
xor ecx, ecx
sub esp, 0xc
jmp 0x10002648
mov eax, dword [edi + 0x4d0]
mov dword [esp + 4], 0
mov dword [ebp - 0x48], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x88]
call eax
mov edx, dword [ebp - 0x48]
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [edi + 0x4f0]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x48], eax
jmp 0x1000237b
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x64], ebx
lea ebx, [ebp - 0x20]
mov dword [ebp - 0x60], ebx
mov ebx, dword [ebp - 0x44]
or ebx, dword [ebp - 0x48]
jne 0x1000256a
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXreset
mov eax, dword [edi + 0x4f8]
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___umoddi3
mov esi, dword [ebp - 0x80]
mov ebx, eax
mov eax, dword [edi + 0x4f4]
mov dword [eax + ebx*8], esi
mov esi, dword [ebp - 0x84]
mov dword [eax + ebx*8 + 4], esi
mov eax, dword [edi + 0x4f0]
lea edx, [eax + ebx*4]
mov esi, dword [edx]
test esi, esi
je 0x100027e0
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, edi
call sym.__chm_get_cmpblock_bounds
test eax, eax
je 0x10002616
cmp dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
je 0x100027d0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x40]
call sym.__chm_fetch_bytes.part.0
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
xor edx, ebx
xor eax, ecx
or edx, eax
je 0x100026f8
mov ebx, dword [ebp - 0x40]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x40], 0
xor ecx, ecx
sub esp, 0xc
mov eax, dword [ebp - 0x40]
add esi, dword [ebp - 0x78]
mov dword [ebp - 0x38], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
mov eax, dword [ebp - 0x7c]
call eax
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
sub esp, 4
mov eax, ebx
or eax, ecx
je 0x10002491
add dword [ebp - 0x50], ecx
adc dword [ebp - 0x4c], ebx
sub dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
sbb dword [ebp - 0x2c], ebx
mov edx, dword [ebp - 0x2c]
add dword [ebp - 0x5c], ecx
adc dword [ebp - 0x58], ebx
mov ebx, edx
add dword [ebp - 0x54], ecx
or ebx, eax
jne 0x10002150
jmp 0x10002491
add esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], esi
mov esi, dword [ebp - 0x54]
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._memcpy
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call ebx
mov esi, dword [ebp - 0x74]
sub esp, 4
mov dword [esp], esi
call ebx
mov ecx, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
sub esp, 4
jmp 0x1000267b
mov eax, dword [edi + 0x4d0]
mov ebx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov eax, dword [edi + 0x4e8]
mov dword [esp], eax
call sym._LZXdecompress
test eax, eax
jne 0x10002616
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x4ec], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [edi + 0x4d0]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [edi + 0x4d4]
mov ebx, dword [ebp - 0x90]
sub esp, 0xc
cmp ecx, eax
sbb ebx, edx
mov ebx, ecx
cmovae ebx, eax
mov eax, dword [ebp - 0x90]
cmovae eax, edx
mov dword [ebp - 0x40], ebx
mov ecx, ebx
mov ebx, eax
jmp 0x10002648
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x10002491
mov dword [edi + 0x4ec], 0xffffffff
mov eax, dword [edi + 0x4dc]
mov dword [esp], eax
call sym._LZXinit
mov dword [edi + 0x4e8], eax
jmp 0x10002277
xor eax, eax
xor edx, edx
jmp 0x1000260a
mov ecx, dword [edi + 0x4d0]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x48], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x88]
call eax
mov edx, dword [ebp - 0x48]
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [edi + 0x4f0]
mov esi, dword [eax + ebx*4]
jmp 0x100025b8