Function at 0x10040610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10143801
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x1019c828]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
xor esi, esi
mov dword [ebx], eax
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [esp + 0x68], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
fld qword [ebp + 0xc]
fstp qword [ebx + 0x28]
fld qword [ebp + 0x14]
fstp qword [ebx + 0x30]
fldz
fstp qword [ebx + 0x38]
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x4c], esi
cmp eax, esi
mov byte [esp + 0x68], 2
je 0x10040ac7
mov ecx, dword [eax + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov ecx, edi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
call fcn.10040140
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
lea ecx, [ebx + 0x14]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
call fcn.10040140
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xa8], esi
mov dword [esp + 0x1c], esi
jle 0x10040ac7
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x94]
mov edx, dword [esp + 0x1c]
lea eax, [eax + edx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x10040704
movzx eax, word [eax + edx*2]
jmp 0x1004070b
movzx eax, word [ecx + 0xb0]
movzx eax, ax
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
jle 0x10040a94
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [ecx]
mov ebx, dword [ecx + eax*4]
add edx, 0xffffffff
cmp eax, edx
mov dword [esp + 0x18], ebx
jne 0x10040742
xor eax, eax
jmp 0x10040745
add eax, 1
mov edx, dword [ecx + eax*4]
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x1004075f
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x10040765
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov esi, ebx
shl esi, 4
mov ecx, dword [eax + esi + 8]
add eax, esi
cmp dword [eax + 4], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
jbe 0x1004078a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004079d
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x100407a3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi + 8]
add eax, esi
cmp dword [eax + 4], ecx
mov dword [esp + 0x30], ecx
jbe 0x100407bb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100407ce
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x100407d4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 4]
add esi, dword [esp + 0x14]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x100407e9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
cmp ebx, eax
mov dword [esp + 0x40], ebx
je 0x1004080b
mov ecx, dword [esp + 0x10]
lea esp, [esp]
cmp dword [ebx], ecx
je 0x1004080b
add ebx, 4
cmp ebx, eax
jne 0x10040800
test esi, esi
je 0x10040815
cmp esi, dword [esp + 0x34]
je 0x1004081b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x38]
jne 0x10040897
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10040836
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x1004083c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 4]
add esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
test eax, eax
jne 0x1004084e
xor edx, edx
jmp 0x10040856
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x10040877
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x10040877
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 8], eax
jmp 0x10040897
mov ebx, dword [esi + 8]
cmp eax, ebx
jbe 0x10040884
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x10]
push edx
push ebx
push esi
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.10050a40
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x100408a3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, dword [edi + 4]
add eax, 0xffffffff
test ecx, ecx
mov eax, dword [edx + eax*4]
mov dword [esp + 0x10], eax
je 0x100408c8
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x100408ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
add eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jbe 0x100408eb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10040900
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x10040906
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
add eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [esp + 0x38], ecx
jbe 0x1004091f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10040934
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x1004093a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 4]
add esi, dword [esp + 0x14]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x1004094f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x40], ebx
je 0x1004096f
jmp 0x10040960
mov ecx, dword [esp + 0x10]
cmp dword [ebx], ecx
je 0x1004096f
add ebx, 4
cmp ebx, eax
jne 0x10040960
test esi, esi
je 0x10040979
cmp esi, dword [esp + 0x34]
je 0x1004097f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x30]
jne 0x100409fb
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004099a
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x100409a0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 4]
add esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
test eax, eax
jne 0x100409b2
xor edx, edx
jmp 0x100409ba
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x100409db
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x100409db
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
mov dword [esi + 8], eax
jmp 0x100409fb
mov ebx, dword [esi + 8]
cmp eax, ebx
jbe 0x100409e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.10050a40
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
add eax, 0x14
test ecx, ecx
je 0x10040a17
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x10040a1d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x18]
add esi, dword [esp + 0x14]
add eax, 0x14
mov eax, dword [esi + 4]
test eax, eax
jne 0x10040a36
xor edx, edx
jmp 0x10040a3e
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x10040a5f
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x10040a5f
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
add eax, 4
mov dword [esi + 8], eax
jmp 0x10040a7f
mov ebx, dword [esi + 8]
cmp eax, ebx
jbe 0x10040a6c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.10050a40
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x10040722
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
add eax, 1
cmp eax, dword [edx + 0xa8]
mov dword [esp + 0x1c], eax
jl 0x100406e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14