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

Disassembly:
push 0xffffffffffffffff
push 0x47e2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
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 [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
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 0x48a2ec
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004601a0
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 0x46064f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0x4932fc
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.004601a0
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 0x46069b
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 0x4895ec
push esi
call ebp
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x4607cd
cmp dword [esp + 0x20], 1
je 0x46076b
lea ecx, [esp + 0x1c]
push ecx
push 0x4932f8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.004601a0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
mov byte [esp + 0x30], 5
cmp eax, edi
je 0x46073b
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x460729
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x460729
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 0x460720
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 0x46073b
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 0x460760
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 0x4606a5
mov edi, 0xc
mov ecx, dword [edi + 0x49307c]
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 0x46083e
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 0x4607bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x460848
add edi, 0xc
cmp edi, 0x24
jb 0x460770
mov edi, dword [esp + 0x38]
push 0x481de0
mov ecx, edi
call fcn.00406310
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 0x4607fe
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 0x460826
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.0045f480
mov edi, dword [esp + 0x20]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
mov byte [esp + 0x30], 4
jle 0x46087d
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.00409980
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 0x4608d3
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 0x4608f4
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 0x46091c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x460828