Function at 0x4df5f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57bde8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x30], esi
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 1
mov eax, dword [ebp + 0x42c]
cmp eax, esi
lea ebx, [ebp + 0x3e4]
mov dword [esp + 0x18], esi
je 0x4df697
lea edi, [eax + 0x2c]
mov esi, 0x5a03bc
call fcn.0041e3f0
test eax, eax
je 0x4df697
mov eax, dword [eax + 0x18]
lea ecx, [ebp + 0x454]
push ecx
add eax, 8
push 0x58ded0
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
cmp dword [ebp + 0x454], 0
je 0x4df6fd
push 0x5a03c4
push ebx
lea ebx, [esp + 0x1c]
call fcn.00419530
mov edx, dword [esp + 0x14]
lea esi, [ebp + 0x28]
push edx
mov ecx, 0xcb
mov eax, esi
call fcn.0046ea90
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004df4d0
mov byte [esp + 0x30], 2
mov eax, dword [eax]
push eax
mov ecx, 0x105
mov eax, esi
call fcn.0046ea90
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4df74b
push str.path
lea eax, [ebp + 0x458]
push ebx
mov ebx, eax
call fcn.00419530
lea ecx, [esp + 0x20]
push ecx
push ebp
call fcn.004df4d0
mov byte [esp + 0x30], 3
mov eax, dword [eax]
lea edx, [ebp + 0x28]
push eax
mov ecx, 0x105
mov eax, edx
call fcn.0046ea90
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4df757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x42c]
test eax, eax
lea ebx, [ebp + 0x3e4]
je 0x4df792
lea edi, [eax + 0x2c]
mov esi, 0x59202c
call fcn.0041e3f0
test eax, eax
je 0x4df792
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x18]
push ecx
add eax, 8
push 0x58ded0
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
push str.devname
push ebx
lea ebx, [esp + 0x24]
call fcn.00419530
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.004df8a0
mov byte [esp + 0x30], 4
mov eax, dword [eax]
push eax
lea esi, [ebp + 0x28]
mov ecx, 0xcc
mov eax, esi
call fcn.0046ea90
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4df7e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
push 0x59202c
push 0x66
push esi
call fcn.00481c80
mov edi, dword [esp + 0x1c]
push edi
mov ecx, 0x104
mov eax, esi
call fcn.0046ea90
xor edx, edx
cmp dword [ebp + 0x454], edx
mov ecx, 0xc9
sete dl
mov eax, esi
push edx
call fcn.0046ebd0
mov eax, dword [ebp + 0x454]
push eax
mov ecx, 0xca
mov eax, esi
call fcn.0046ebd0
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4df857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4df87f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret