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

Disassembly:
push 0xffffffffffffffff
push 0x40cc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x30]
xor ebx, ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], ebx
call fcn.00406ec0
mov edx, dword [0x415218]
mov ecx, 0x415218
mov byte [esp + 0x28], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 0x410540
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
mov dword [esp + 0x24], ebx
call fcn.00404e30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.00404fa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR70.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0x410540
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.00404e30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call fcn.00404fa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp edi, eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x407a4c
push eax
call ebp
cmp edi, ebx
je 0x407a49
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x407a4c
push 0x8007000e
call fcn.00401280
mov dword [esi + 4], ebx
push str._empty_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
cmp edi, ebx
jne 0x407a67
push 0x8007000e
call fcn.00401280
mov eax, dword [esi + 4]
push ebx
push 0x400
push edi
push eax
call sub.OLEAUT32.dll_VarR8Pow
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
push edi
inc bl
call ebp
test bl, bl
je 0x407ab0
mov eax, dword [esi + 4]
cmp eax, 0x41053c
je 0x407ab0
push eax
call ebp
push 0x41053c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi + 4], eax
jne 0x407ab0
push 0x8007000e
call fcn.00401280
lea ecx, [esp + 0x18]
push ecx
push 0x410540
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call fcn.00404e30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call fcn.00404fa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR70.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0x410540
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov word [esi + 0xc], ax
call fcn.00404e30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call fcn.00404fa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCR70.dll__wtol]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0x410540
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov dword [esi + 0x14], eax
call fcn.00404e30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call fcn.00404fa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0x410540
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov dword [esi + 0x10], eax
call fcn.00404e30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 8
call fcn.00404fa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ebp, dword [esp + 0x10]
cmp ebp, eax
je 0x407c3f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebp, ebp
je 0x407c38
push ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi + 8], eax
jne 0x407c3f
push 0x8007000e
call fcn.00401280
mov dword [esi + 8], 0
push str._empty_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x407c5a
push 0x8007000e
call fcn.00401280
mov eax, dword [esi + 8]
push 0
push 0x400
push edi
push eax
call sub.OLEAUT32.dll_VarR8Pow
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc bl
call edi
test bl, bl
je 0x407caa
mov eax, dword [esi + 8]
cmp eax, 0x41053c
je 0x407caa
push eax
call edi
push 0x41053c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi + 8], eax
jne 0x407caa
push 0x8007000e
call fcn.00401280
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
push eax
call edi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4