Function at 0x4020c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x407060], 0
jne 0x402317
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
xor eax, eax
mov esi, dword [edx + 0x18]
test esi, esi
je 0x402127
mov ecx, dword [esi + 0x3c]
mov ecx, dword [esi + ecx + 0x78]
test ecx, ecx
je 0x402121
lea eax, [esi + ecx]
mov ebx, dword [eax + 0xc]
add ebx, esi
mov ecx, dword [ebx]
or ecx, 0x20202020
cmp ecx, 0x6c64746e
jne 0x402121
mov ecx, dword [ebx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x402133
mov edx, dword [edx]
mov ecx, esi
jmp 0x4020e6
xor edx, edx
test eax, eax
je 0x40230d
mov esi, ecx
mov ebx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [eax + 0x20]
add edx, esi
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x24]
add ebx, esi
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x1c]
add edx, esi
lea eax, [edx + ebx*2 - 2]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4 - 4]
add ecx, esi
cmp word [ecx], 0x694b
jne 0x4021d1
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call fcn.00401fe3
mov ecx, dword [ebp - 0x2c]
cmp eax, 0xffce1055
jne 0x4021d1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax]
mov edi, dword [edx + eax*4]
add edi, esi
mov dword [ebp - 0x2c], edi
xor edi, edi
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 3
mov dword [esp], 0x404440
lea edx, [edi + eax]
mov dword [ebp - 0x34], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x30], edx
call sub.msvcrt.dll_memcmp
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x4021cb
mov dword [0x407040], edx
jmp 0x4021d1
inc edi
cmp edi, 0x20
jne 0x402195
cmp word [ecx], 0x775a
jne 0x402214
imul edx, ebx, 0xc
mov dword [esp], ecx
inc ebx
lea edi, [edx + 0x407064]
mov dword [ebp - 0x2c], edx
call fcn.00401fe3
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x407064], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax]
mov eax, dword [edx + eax*4]
mov dword [edi + 8], 0
mov dword [edi + 4], eax
cmp ebx, 0x1f4
je 0x402221
sub dword [ebp - 0x20], 2
dec dword [ebp - 0x1c]
jne 0x40215a
mov dword [0x407060], ebx
dec ebx
test ebx, ebx
je 0x402279
mov dword [ebp - 0x1c], 0
mov eax, 0x407060
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0x14]
inc dword [ebp - 0x1c]
cmp ecx, edi
jbe 0x40226f
mov edx, dword [eax + 4]
mov dword [eax + 8], edi
mov edi, dword [eax + 0x18]
mov dword [eax + 0x14], ecx
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x10]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov dword [eax + 0x18], edi
add eax, 0xc
cmp dword [ebp - 0x1c], ebx
jb 0x402238
jmp 0x402227
mov edi, dword [0x407068]
mov eax, dword [0x407074]
sub eax, edi
mov dword [ebp - 0x1c], eax
lea eax, [esi + edi]
xor edi, edi
mov dword [ebp - 0x20], eax
mov ecx, edi
cmp edi, dword [ebp - 0x1c]
je 0x4022c6
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 3
mov dword [esp], 0x404440
add eax, edi
mov dword [ebp - 0x24], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
mov ecx, dword [ebp - 0x24]
test eax, eax
je 0x4022c2
inc edi
jmp 0x402291
test ecx, ecx
jne 0x4022d8
call fcn.00401fcb
xor ecx, ecx
test eax, eax
jne 0x4022d8
mov edx, 1
jmp 0x40230d
cmp ebx, dword [0x407060]
jae 0x4022d1
imul edi, ebx, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ecx
inc ebx
mov dword [ebp - 0x20], ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x407068]
add eax, esi
mov dword [esp], eax
call fcn.00402018
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x40706c], eax
jmp 0x4022d8
add esp, 0x3c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov eax, edx
ret