Function at 0x41c652c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41c9b5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xc], edx
cmp dword [esp + 0x48], 1
mov dword [esi + 4], eax
sete al
mov dword [esi + 8], ecx
xor ebx, ebx
lea ecx, [esp + 0x3c]
push edi
mov byte [esi + 0x3c], al
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], bl
mov ebp, dword [esp + 0x38]
mov edx, dword [ebp]
lea eax, [esi + 0x14]
push eax
lea edi, [esi + 0x10]
push edi
push ebp
mov dword [esp + 0x3c], ebx
call dword [edx + 0xc]
mov edx, dword [edi]
mov ecx, dword [esp + 0x50]
sub edx, ecx
cmp eax, ebx
mov dword [edi], edx
jge 0x41c6535c
push 0x41ca2b24
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], vtable.CCOMException.0
mov dword [esp + 0x2c], eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp]
lea ecx, [esp + 0x44]
push ecx
push ebp
call dword [eax + 0x18]
cmp eax, ebx
jge 0x41c65393
push 0x41ca2b24
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], vtable.CCOMException.0
mov dword [esp + 0x2c], eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x48], ebx
jbe 0x41c65428
mov eax, dword [ebp]
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebp
call dword [eax + 0x1c]
test eax, eax
jl 0x41c654a4
mov edx, dword [esp + 0x44]
dec edx
cmp ebx, edx
jne 0x41c653d8
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x41c654cf
cmp dword [esp + 0x3c], 4
jne 0x41c653f1
mov eax, dword [esp + 0x44]
dec eax
cmp ebx, eax
jne 0x41c653f1
mov ecx, dword [esp + 0x40]
push 1
push ecx
jmp 0x41c653f8
mov edx, dword [esp + 0x40]
push 0
push edx
mov ecx, esi
call fcn.41c64c50
mov edi, eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test edi, edi
mov dword [esp + 0x40], 0
jne 0x41c654fa
mov eax, dword [esp + 0x44]
inc ebx
cmp ebx, eax
jb 0x41c653a3
mov ebx, dword [esi + 0x20]
test ebx, ebx
jle 0x41c6555a
mov edi, dword [esp + 0x3c]
cmp edi, 1
je 0x41c65459
mov al, byte [esi + 0x3c]
test al, al
je 0x41c65450
cmp edi, 2
je 0x41c65459
test al, al
jne 0x41c6555a
cmp edi, 3
jne 0x41c6555a
mov eax, dword [esp + 0x48]
test eax, eax
jbe 0x41c6551d
mov edx, dword [ebp]
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [edx + 0x24]
test eax, eax
jge 0x41c6553e
push 0x41ca2b24
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], vtable.CCOMException.0
mov dword [esp + 0x2c], eax
call sub.MSVCR71.dll__CxxThrowException
push 0x41ca2b24
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], vtable.CCOMException.0
mov dword [esp + 0x2c], eax
call sub.MSVCR71.dll__CxxThrowException
mov dword [esp + 0x24], eax
push 0x41ca2b24
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], vtable.CCOMException.0
call sub.MSVCR71.dll__CxxThrowException
push 0x41ca2664
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.CGenericException.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x3fe
call sub.MSVCR71.dll__CxxThrowException
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.41c64280
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add ecx, edx
mov dword [esp + 0x3c], ecx
jmp 0x41c65542
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x38]
sub eax, ecx
cmp edi, 1
jne 0x41c6554e
sar eax, 1
push eax
dec ebx
push ebx
push 0
mov ecx, esi
call fcn.41c64300
mov al, byte [esi + 0x3c]
test al, al
je 0x41c65568
mov ecx, esi
call fcn.41c645a0
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x30], 0xffffffff
je 0x41c6557e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x1c