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

Disassembly:
push 0xffffffffffffffff
push 0x47da70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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.004034c0
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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 0x488f80
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0045fa00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.00403090
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 0x45feaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0x491f7c
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045fa00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00403090
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 0x45fefb
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 0x488314
push esi
call ebp
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x46002d
cmp dword [esp + 0x20], 1
je 0x45ffcb
lea ecx, [esp + 0x1c]
push ecx
push 0x491f78
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045fa00
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
mov byte [esp + 0x30], 5
cmp eax, edi
je 0x45ff9b
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x45ff89
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x45ff89
push eax
call fcn.00401570
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45ff80
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 0x45ff9b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402ba0
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 0x45ffc0
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 0x45ff05
mov edi, 0xc
mov ecx, dword [edi + 0x491cfc]
push ecx
lea ecx, [esp + 0x24]
call fcn.004034c0
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46009e
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 0x46001d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4600a8
add edi, 0xc
cmp edi, 0x24
jb 0x45ffd0
mov edi, dword [esp + 0x38]
push 0x480de0
mov ecx, edi
call fcn.00406300
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 0x46005e
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 0x460086
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.0045ef20
mov edi, dword [esp + 0x20]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
mov byte [esp + 0x30], 4
jle 0x4600dd
mov edx, ebx
push edx
lea ecx, [esp + 0x24]
call fcn.004015e0
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.00409760
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 0x460133
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 0x460154
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 0x46017c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x460088