Function at 0x412780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432a6e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x43e524]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x43e524]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, edx
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x30], eax
cmp dword [edi + 0xc], ebx
jbe 0x4127d8
call fcn.0041de6c
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x4127f3
call fcn.0041de6c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [edi]
push ebx
push edx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00415520
xor eax, eax
lea ecx, [esi + 0x1c]
lea edx, [esp + 0x14]
add esi, 0x34
push edx
lea ebx, [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
call fcn.00405900
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x412997
mov ebx, dword [esp + 0x1c]
lea esi, [eax + 0xf]
jmp 0x412852
xor eax, eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], eax
mov byte [esp + 0x6c], 0
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], eax
mov byte [esp + 0x8c], 0
mov dword [esp + 0xb8], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
call fcn.004057a0
add esp, 8
test al, al
je 0x4129e3
add ebx, dword [esp + 0x18]
lea edx, [esp + 0x84]
mov dword [esp + 0x1c], ebx
push edx
lea ebx, [esp + 0x20]
call fcn.00405900
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.004057a0
add esp, 8
test al, al
je 0x412a10
add ebx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
call fcn.00414de0
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0xa0], 0x10
jb 0x41292b
mov eax, dword [esp + 0x8c]
push eax
call fcn.0041dbb6
add esp, 4
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
jb 0x41295c
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0041dbb6
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
jb 0x412984
mov edx, dword [esp + 0x50]
push edx
call fcn.0041dbb6
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x412850
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
cmp dword [edi + 0xc], eax
jbe 0x4129ac
call fcn.0041de6c
mov esi, dword [edi + 0xc]
mov ebx, dword [edi]
cmp esi, dword [edi + 0x10]
jbe 0x4129bb
call fcn.0041de6c
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
push ecx
push ebx
push esi
push eax
lea edx, [esp + 0x2c]
push edx
mov esi, edi
call fcn.004156f0
xor ebx, ebx
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jle 0x412b35
jmp 0x412a46
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], str.CBufferReadHelper::ReadTo
call fcn.0041da38
push 0x43a894
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.0042083b
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], str.CBufferReadHelper::ReadTo
call fcn.0041da38
push 0x43a894
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.0042083b
lea ecx, [ecx]
mov edi, dword [esp + 0x30]
xor ebx, ebx
push 4
call fcn.0041dcaa
add esp, 4
cmp eax, ebx
je 0x412a5c
lea ecx, [esp + 0x34]
mov dword [eax], ecx
jmp 0x412a5e
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0xbc], 2
call fcn.00414e80
mov ebx, dword [edi + 0x10]
mov edi, dword [esp + 0x30]
cmp dword [edi + 0xc], ebx
jbe 0x412a94
call fcn.0041de6c
mov edi, dword [edi]
xor esi, esi
mov dword [esp + 0x20], ebx
cmp edi, esi
jne 0x412ab7
call fcn.0041de6c
xor eax, eax
lea ecx, [ebx - 0x18]
cmp ecx, dword [eax + 0x10]
ja 0x412ac2
cmp edi, esi
je 0x412abb
mov eax, dword [edi]
jmp 0x412abd
mov eax, dword [edi]
jmp 0x412aa7
xor eax, eax
cmp ecx, dword [eax + 0xc]
jae 0x412ac7
call fcn.0041de6c
add ebx, 0xffffffe8
cmp edi, esi
jne 0x412b5b
call fcn.0041de6c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x412ae3
call fcn.0041de6c
push ebx
lea edi, [esp + 0x28]
call fcn.00405990
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x412b09
push eax
call fcn.0041dbb6
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.0041dbb6
mov eax, dword [esp + 0x14]
inc eax
add esp, 4
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x412a40
mov al, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0041d9bb
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
jmp 0x412ad9