Function at 0x40ebe0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
push ebx
push esi
push edi
xor ebx, ebx
push 0x18
mov dword [ebp - 0x18], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x40f823
mov dword [ebp - 0x1c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x1c]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x15], al
push 0x104
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push eax
mov byte [ebp - 0x42c], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ebx
push ecx
mov byte [ebp - 0x534], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x4c
lea edx, [ebp - 0x118]
push ebx
push edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x4c
lea eax, [ebp - 0xc0]
push ebx
push eax
mov dword [ebp - 0xc4], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea eax, [ebp - 0xc4]
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call fcn.00412410
test eax, eax
je 0x40ece6
push str._nGet_Browser_Infomation_Failed_n_n
call dword [sym.imp.MSVCR100.dll_printf]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
add esp, 4
push eax
push ecx
lea edi, [ebp + 8]
lea esi, [ebp - 0x20]
call fcn.00406b10
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xfde9
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
call fcn.00414950
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov edi, dword [sym.imp.MSVCR100.dll_free]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, ecx
je 0x40ed35
push eax
call edi
add esp, 4
lea ebx, [ebp - 0x34]
call fcn.00412830
push 0x497cbc
lea ecx, [ebp - 0x38]
call fcn.00405690
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x38]
push edx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x58], eax
call fcn.00406aa0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 8]
add esp, 4
call fcn.00413ab0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x28], 0x499440
mov dword [ebp - 0x5c], eax
call fcn.00406aa0
lea esi, [eax + 0x10]
add esp, 4
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], esi
call fcn.00408690
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x30]
call fcn.00407b90
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xfde9
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
call fcn.00414950
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405690
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
cmp eax, edx
je 0x40ee0c
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x28], 0x499234
call fcn.00406aa0
lea esi, [eax + 0x10]
add esp, 4
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], esi
call fcn.00408690
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x30]
call fcn.00407b90
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0x34]
call fcn.00412830
call fcn.0041f360
mov edx, dword [0x4ae214]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
push esi
lea ecx, [ebp - 0x38]
add eax, 0x10
push 0x497c54
push ecx
mov dword [ebp - 0x38], eax
call fcn.00407630
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
add esp, 0xc
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x28], str.austate
call fcn.00408760
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x30]
call fcn.00407b90
call fcn.0041f6b0
mov dword [ebp - 0x28], str.stalive
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
test al, al
je 0x40eee1
mov dword [ebp - 0x24], 0x497858
call fcn.00408760
push eax
lea ecx, [ebp - 0x20]
push ecx
jmp 0x40eef2
mov dword [ebp - 0x24], 0x497cbc
call fcn.00408760
push eax
lea edx, [ebp - 0x20]
push edx
lea ebx, [ebp - 0x30]
call fcn.00407b90
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae214
call edx
add eax, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x40f0b4
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
test ebx, 0xffff0000
jne 0x40ef67
movzx esi, bx
push 0
push esi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x40ef6f
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406e10
jmp 0x40ef6f
lea edi, [ebp - 0x3c]
call fcn.00414800
push 0x497cbc
lea ecx, [ebp - 0x10]
call fcn.00405690
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
push ecx
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov ebx, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40efad
cmp eax, dword [edi]
jne 0x40efad
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40efe9
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40f104
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
mov eax, dword [ebp + 8]
add esi, 0x10
mov dword [ebx], esi
call fcn.00413ab0
push 0xc8
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push 0
push edx
mov byte [ebp - 0x1ec], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax - 0xc4]
add esp, 0xc
mov eax, ebx
test ebx, ebx
jne 0x40f028
mov eax, 0x499448
mov ecx, dword [ebp - 0x10]
push eax
push ecx
push str.__S__s_
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push 0xc8
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea esi, [ebp - 0xc]
call fcn.00414300
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
add esp, 4
push ebx
call esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f089
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0a2
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp eax, 0x50
jl 0x40ef16
lea ebx, [ebp - 0xc]
call fcn.00412830
mov edi, dword [ebp - 0xc]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x44], 0x49945c
mov dword [ebp - 0x24], edi
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40f0f0
cmp eax, dword [edi]
jne 0x40f0f0
mov esi, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40f12d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x40f109
call fcn.00406620
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea edx, [eax + eax + 2]
push edx
add edi, 0x10
push edi
lea eax, [eax + eax + 2]
lea ecx, [esi + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
add esi, 0x10
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], esi
call fcn.00408690
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x30]
call fcn.00407b90
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00412bd0
mov dword [ebp - 0x44], 0x499464
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x20]
test al, al
je 0x40f228
mov dword [ebp - 0x40], 0x497858
call fcn.00408760
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x30]
call fcn.00407b90
xor eax, eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
call fcn.00432340
mov dword [ebp - 0x78], eax
call fcn.00431f60
lea edx, [ebp - 0xcc]
push edx
mov dword [ebp - 0x74], eax
call fcn.0042e9a0
test eax, eax
jne 0x40f21b
call fcn.00412a50
lea esi, [ebp - 0xcc]
call fcn.0042d480
jmp 0x40f241
mov dword [ebp - 0x40], 0x497cbc
call fcn.00408760
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x30]
call fcn.00407b90
xor esi, esi
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.00412d50
mov edi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x54]
mov eax, edi
sub eax, ebx
sar eax, 2
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x40], eax
cmp eax, esi
jbe 0x40f47f
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov esi, dword [ebp - 0xc]
push esi
lea ecx, [ebp - 0x3c]
add eax, 0x10
push str.IEHomePage_d
push ecx
mov dword [ebp - 0x3c], eax
call fcn.00407630
mov edx, dword [ebp - 0x54]
mov ebx, dword [edx + esi*4]
mov ecx, dword [ebx - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esp, 0xc
call edx
cmp dword [ebx - 4], 0
lea edx, [ebx - 4]
jl 0x40f2c7
cmp eax, dword [ebx - 0x10]
jne 0x40f2c7
lea esi, [ebx - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40f300
mov ecx, dword [ebx - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40f104
mov eax, dword [ebx - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebx - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push ebx
push edx
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
add esi, 0x10
mov ecx, 0x4ae214
mov dword [ebp - 0x10], esi
call eax
add eax, 0x10
mov ecx, 0x497cbc
mov dword [ebp - 8], eax
test ecx, 0xffff0000
jne 0x40f349
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x40f358
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406e10
jmp 0x40f358
push 1
push 0x497cbc
lea ecx, [ebp - 8]
call fcn.004069f0
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push edx
call fcn.00413bf0
mov esi, dword [ebp - 8]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x30], 0x499488
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40f39a
cmp eax, dword [esi]
jne 0x40f39a
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40f3d6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40f104
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea edx, [eax + eax + 2]
push edx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
lea ecx, [ebx + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
lea edi, [ebx + 0x10]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x2c], edi
call fcn.00408690
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x64]
call fcn.00407b90
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f410
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f429
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f467
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x40]
jb 0x40f270
mov edi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x54]
xor esi, esi
cmp ebx, esi
je 0x40f4c1
mov esi, ebx
cmp ebx, edi
je 0x40f4b5
lea esp, [esp]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40f490
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 8], eax
test ecx, 0xffff0000
jne 0x40f517
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x40f53f
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406e10
jmp 0x40f53f
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40f520
sub eax, edx
sar eax, 1
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, [ebp - 8]
call fcn.004069f0
push 0x19
push str._baidu_browserconfig.ini
lea ebx, [ebp - 8]
call fcn.004064e0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
je 0x40f6bb
test al, 0x10
jne 0x40f6bb
lea edx, [ebp - 0x10]
push edx
mov ecx, ebx
call fcn.00419390
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
push 0
push str.REPORT
push 0x497cb8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [0x4ae214]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov dword [ebp - 0xc], eax
mov edx, 0x497858
test esi, esi
jne 0x40f5b3
mov edx, 0x497cbc
mov eax, edx
lea esi, [eax + 2]
jmp 0x40f5c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f5c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xc]
call fcn.004069f0
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x30], 0x497cc0
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40f60a
cmp eax, dword [esi]
jne 0x40f60a
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40f647
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x40f623
call fcn.00406620
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea edx, [eax + eax + 2]
push edx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
lea ecx, [ebx + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
lea edi, [ebx + 0x10]
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x2c], edi
call fcn.00408690
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x64]
call fcn.00407b90
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f681
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f69a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f6e1
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x30], 0x497cc0
mov dword [ebp - 0x2c], 0x497858
call fcn.00408760
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ebx, [ebp - 0x64]
call fcn.00407b90
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x10
push esp
lea ecx, [ebp - 0x20]
call fcn.004067e0
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, 0x4ae214
mov esi, esp
call eax
add eax, 0x10
mov ecx, 0x499490
mov dword [esi], eax
test ecx, 0xffff0000
jne 0x40f750
mov edx, ecx
movzx edi, dx
push 0
push edi
call fcn.0040b110
add esp, 8
test eax, eax
je 0x40f75e
push edi
push eax
mov ecx, esi
call fcn.00406e10
jmp 0x40f75e
push 2
push 0x499490
mov ecx, esi
call fcn.004069f0
mov eax, dword [ebp + 8]
push eax
call fcn.00413540
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp + 8]
lea esi, [ebp - 0x20]
call fcn.00406b10
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x68]
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4aa228
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3