Function at 0x500dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x625200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.004698b0
mov ecx, dword [0x6e0ea0]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x20], 1
mov edi, dword [edx - 8]
cmp edi, esi
jle 0x500e31
mov eax, dword [esp + 0x2c]
cmp word [eax + esi*2], 0x5c
jne 0x500e2c
lea ecx, [esp + 0x2c]
call fcn.004e9cc0
mov ecx, dword [esp + 0x2c]
mov word [ecx + esi*2], 0x2f
inc esi
cmp esi, edi
jl 0x500e0e
lea edx, [esp + 0x14]
push 2
push edx
lea ecx, [esp + 0x34]
call fcn.004eb930
push 0x6e40fc
mov ecx, eax
mov byte [esp + 0x24], 2
call fcn.004eb1b0
test eax, eax
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll_free]
sete bl
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x20], 1
je 0x500e7e
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x500e7e
push eax
call ebp
add esp, 4
test bl, bl
je 0x500ecb
mov ecx, dword [0x65329c]
lea edx, [esp + 0x14]
push ecx
push 2
push edx
lea ecx, [esp + 0x38]
call fcn.004eb6d0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 3
call fcn.004ea610
mov eax, dword [esp + 0x14]
mov byte [esp + 0x20], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x500ec8
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x500ec8
push eax
call ebp
add esp, 4
add edi, 0xfffffffe
cmp edi, 3
jge 0x500eec
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004698b0
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
jmp 0x501006
mov eax, dword [esp + 0x2c]
mov cx, word [eax]
mov si, word [eax + 2]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.004e9db0
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.004e9db0
mov esi, 2
cmp edi, esi
jle 0x500f41
mov ebx, 0x2e
mov edx, dword [esp + 0x2c]
mov ax, word [edx + esi*2]
cmp ax, 0x2f
je 0x500f30
cmp ax, bx
jne 0x500f61
push eax
push 1
lea ecx, [esp + 0x18]
call fcn.004e9db0
inc esi
cmp esi, edi
jl 0x500f1d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x500ff1
mov edx, dword [0x6e0ea0]
mov dword [esi], edx
jmp 0x501003
cmp esi, edi
jge 0x500f41
mov eax, dword [esp + 0x2c]
mov cx, word [eax + esi*2]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.004e9db0
mov eax, dword [esp + 0x2c]
cmp word [eax + esi*2], 0x2f
jne 0x500fdf
cmp word [eax + esi*2 - 2], bx
jne 0x500fdf
cmp word [eax + esi*2 - 4], bx
jne 0x500fdf
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
sub eax, 2
js 0x500fe3
mov dx, word [ecx + eax*2]
cmp dx, 0x2f
je 0x500fb3
cmp dx, 0x3a
je 0x500fb3
dec eax
jns 0x500f9e
jmp 0x500fe3
test eax, eax
jl 0x500fe3
cmp word [ecx + eax*2], 0x3a
je 0x500fe3
dec eax
js 0x500fd4
mov dx, word [ecx + eax*2]
cmp dx, 0x2f
je 0x500fd4
cmp dx, 0x3a
je 0x500fd4
dec eax
jns 0x500fc1
inc eax
lea ecx, [esp + 0x10]
push eax
call fcn.004ebfc0
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, edi
jl 0x500f65
jmp 0x500f45
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x501003
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0xc]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50101a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x50101a
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x501035
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x501035
push eax
call ebp
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret