Function at 0x41d230
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476530
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [esp + 0x50]
cmp edi, 6
jae 0x41d3ba
mov eax, dword [0x49aec0]
mov dword [esp + 0x54], eax
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push ecx
mov dword [esp + 0x58], 0
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x41d2a0
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [esp + 0x50]
call fcn.00465900
mov bl, 4
push 0x499064
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], bl
call fcn.00465900
push 1
push 0
lea eax, [esp + 0x54]
push 0x101
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [esp + 0x58], 5
call fcn.00429ee0
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], bl
call fcn.00465892
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [esp + 0x54]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov eax, dword [0x49a15c]
push eax
call fcn.0042fd80
mov esi, dword [0x49a15c]
add esp, 4
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00465607
lea edx, [esi + 8]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x48], 6
call fcn.00465607
lea eax, [esi + 0xc]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x48], 7
call fcn.00465607
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x18]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 8
mov dword [esp + 0x24], edx
call fcn.00465607
mov ecx, dword [esi + 0x1c]
add esi, 0x20
mov dword [esp + 0x28], ecx
push 0x48a578
mov edx, dword [esi]
mov byte [esp + 0x48], 0
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
mov eax, dword [esi + 4]
push edx
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], vtable.rl::CError.0
mov dword [esp + 0x3c], ecx
call fcn.004419d1
mov edx, dword [esp + 0x4c]
mov ax, word [edx]
test ax, ax
mov word [ecx + 0x1d0], ax
je 0x41d796
mov esi, dword [esp + 0x54]
xor eax, eax
test esi, esi
je 0x41d3e0
mov eax, 0xfffffffe
mov si, word [eax + edx + 4]
lea ebx, [eax + 0x36]
cmp edi, ebx
mov word [ecx + 0x1d2], si
jae 0x41d558
mov eax, dword [0x49aec0]
mov dword [esp + 0x54], eax
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
mov ebx, 9
push 0
push ecx
mov dword [esp + 0x58], ebx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x41d440
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [esp + 0x50]
call fcn.00465900
push 0x499064
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0xd
call fcn.00465900
push 1
push 0
lea eax, [esp + 0x54]
push 0x111
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [esp + 0x58], 0xe
call fcn.00429ee0
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0xd
call fcn.00465892
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [esp + 0x54]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov eax, dword [0x49a15c]
push eax
call fcn.0042fd80
mov esi, dword [0x49a15c]
add esp, 4
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00465607
lea edx, [esi + 8]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x48], 0xf
call fcn.00465607
lea eax, [esi + 0xc]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x48], 0x10
call fcn.00465607
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x18]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0x11
mov dword [esp + 0x24], edx
call fcn.00465607
mov ecx, dword [esi + 0x1c]
add esi, 0x20
mov dword [esp + 0x28], ecx
push 0x48a578
mov edx, dword [esi]
mov byte [esp + 0x48], bl
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
mov eax, dword [esi + 4]
push edx
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], vtable.rl::CError.0
mov dword [esp + 0x3c], ecx
call fcn.004419d1
cmp si, 1
jne 0x41d5d0
mov edi, dword [ecx + 4]
lea esi, [eax + edx + 6]
mov ebx, dword [eax + edx + 6]
mov dword [edi], ebx
mov ebx, dword [esi + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esi + 8]
mov dword [edi + 8], ebx
mov esi, dword [esi + 0xc]
mov dword [edi + 0xc], esi
lea esi, [eax + edx + 0x16]
lea edi, [ecx + 8]
lea eax, [eax + edx + 0x26]
mov ebx, dword [esi]
lea edx, [ecx + 0x18]
mov dword [edi], ebx
mov ebx, dword [esi + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esi + 8]
mov dword [edi + 8], ebx
mov esi, dword [esi + 0xc]
mov dword [edi + 0xc], esi
mov esi, dword [eax]
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov dword [edx + 8], esi
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
call fcn.0041cdd0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc
mov esi, dword [eax + edx + 0xa]
lea esi, [esi + eax + 0xe]
cmp edi, esi
jae 0x41d741
mov ecx, dword [0x49aec0]
mov dword [esp + 0x54], ecx
mov edx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
mov ebx, 0x12
push 0
push edx
mov dword [esp + 0x58], ebx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x41d628
mov eax, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], eax
push 0x498b0c
lea ecx, [esp + 0x50]
call fcn.00465900
push 0x499064
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0x16
call fcn.00465900
push 1
push 0
lea ecx, [esp + 0x54]
push 0x11f
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [0x49a15c]
push edx
mov byte [esp + 0x58], 0x17
call fcn.00429ee0
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0x16
call fcn.00465892
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call fcn.00465892
mov ecx, dword [0x49a15c]
lea eax, [esp + 0x54]
push eax
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
push ecx
call fcn.0042fd80
mov esi, dword [0x49a15c]
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esi + 4]
push edx
call fcn.00465607
lea eax, [esi + 8]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x48], 0x18
call fcn.00465607
lea ecx, [esi + 0xc]
mov byte [esp + 0x44], 0x19
push ecx
lea ecx, [esp + 0x1c]
call fcn.00465607
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x18]
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0x1a
mov dword [esp + 0x24], eax
call fcn.00465607
mov edx, dword [esi + 0x1c]
add esi, 0x20
mov dword [esp + 0x28], edx
push 0x48a578
mov eax, dword [esi]
mov byte [esp + 0x48], bl
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
mov dword [esp + 0x38], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x14], vtable.rl::CError.0
mov dword [esp + 0x3c], edx
call fcn.004419d1
mov word [ecx + 0x1d0], 1
mov esi, dword [eax + edx + 0x16]
mov dword [ecx + 0x1d4], esi
mov esi, dword [eax + edx + 0x1a]
mov dword [ecx + 0x1d8], esi
mov esi, dword [eax + edx + 0x1e]
mov dword [ecx + 0x1dc], esi
mov esi, dword [eax + edx + 0x22]
lea edx, [eax + edx + 0x2e]
mov dword [ecx + 0x1e0], esi
push edx
add ecx, 0x1e4
call fcn.00465a42
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc
mov eax, dword [edx + 2]
pop edi
mov dword [ecx + 0x1d4], eax
mov ecx, dword [esp + 0x38]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc