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

Disassembly:
push 0xffffffffffffffff
push 0x47ad30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
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.00403450
mov edx, dword [0x49f474]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
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 0x4859a0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0045e0a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.00403020
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 0x45e54f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0x48abe0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045e0a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00403020
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 0x45e59b
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 0x483ec8
push esi
call ebp
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x45e6cd
cmp dword [esp + 0x20], 1
je 0x45e66b
lea ecx, [esp + 0x1c]
push ecx
push 0x48abdc
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.0045e0a0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
mov byte [esp + 0x30], 5
cmp eax, edi
je 0x45e63b
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x45e629
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x45e629
push eax
call fcn.00401590
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x45e620
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 0x45e63b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402b30
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 0x45e660
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 0x45e5a5
mov edi, 0xc
mov ecx, dword [edi + 0x48a954]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403450
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45e73e
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 0x45e6bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45e748
add edi, 0xc
cmp edi, 0x24
jb 0x45e670
mov edi, dword [esp + 0x38]
push 0x47dd68
mov ecx, edi
call fcn.004062a0
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 0x45e6fe
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 0x45e726
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.00401120
mov ebp, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045d3c0
mov edi, dword [esp + 0x20]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
mov byte [esp + 0x30], 4
jle 0x45e77d
mov edx, ebx
push edx
lea ecx, [esp + 0x24]
call fcn.00401600
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.00408d70
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 0x45e7d3
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 0x45e7f4
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 0x45e81c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x45e728