Function at 0x45ded0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47b5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3eb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
call fcn.00403470
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a440c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x486bf0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0045dad0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.00403040
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45df7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0x48fbb8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045dad0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00403040
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45dfcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.MSVCR90.dll__mbscmp]
mov esi, dword [esp + 0x14]
push 0x485f84
push esi
call ebp
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x45e0fd
cmp dword [esp + 0x20], 1
je 0x45e09b
lea ecx, [esp + 0x1c]
push ecx
push 0x48fbb4
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045dad0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
mov byte [esp + 0x30], 5
cmp eax, edi
je 0x45e06b
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x45e059
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x45e059
push eax
call fcn.00401580
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45e050
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
jmp 0x45e06b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402b50
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x20]
xor ebx, ebx
jmp 0x45dfd5
mov edi, 0xc
mov ecx, dword [edi + 0x48f91c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403470
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45e16e
push eax
push esi
call ebp
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45e0ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45e178
add edi, 0xc
cmp edi, 0x24
jb 0x45e0a0
mov edi, dword [esp + 0x38]
push 0x47ed68
mov ecx, edi
call fcn.004062c0
add esi, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e12e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e156
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push 0x80004005
call fcn.00401100
mov ebp, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045d0a0
mov edi, dword [esp + 0x20]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
mov byte [esp + 0x30], 4
jle 0x45e1ad
mov edx, ebx
push edx
lea ecx, [esp + 0x24]
call fcn.004015f0
mov edi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
push ebx
mov ebx, dword [esp + 0x40]
mov ecx, ebp
sub ecx, eax
lea edx, [ecx + ebx - 1]
push edi
push edx
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esi - 0xc]
mov eax, dword [edi - 0xc]
sub eax, ecx
add eax, ebp
mov byte [eax + ebx - 1], 0
mov ebx, dword [esp + 0x44]
add esp, 0xc
push esi
mov ecx, ebx
call fcn.00409470
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e203
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e224
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e24c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x45e158