Function at 0x4052b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x2f4
mov eax, dword [0x451028]
xor eax, esp
mov dword [esp + 0x2f0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push str.Baiduvideobrowser_Debug_WaitDebugger
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_Kl_gzM_0H]
test eax, eax
jbe 0x405311
mov ebx, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call ebx
test eax, eax
jne 0x405311
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
call ebx
test eax, eax
je 0x405304
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4156ac
call fcn.004058f0
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004022d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40534e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00405850
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x18]
call fcn.00407d50
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405391
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.type
call fcn.00405850
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xd0]
push ecx
call fcn.00408280
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2ec]
mov eax, dword [esp + 0x2f0]
cmp esi, eax
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x4053fc
call edi
mov eax, dword [esp + 0x2f0]
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x2ec], eax
mov ebx, eax
jbe 0x405414
call edi
mov eax, dword [esp + 0x2f0]
cmp esi, ebx
je 0x405562
cmp esi, eax
jb 0x405422
call edi
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, 0x416af0
call fcn.00405850
mov esi, dword [esi]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov dword [esp + 0x58], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x405466
cmp eax, dword [esi]
jne 0x405466
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40549e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x405539
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
lea edx, [esp + 0x5c]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.0040ea90
add esp, 0xc
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040a880
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x7c], 0
mov eax, dword [esp + 0x78]
je 0x4054ef
cmp dword [eax - 0xc], 0x823
jb 0x40553e
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40550b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2f0]
cmp dword [esp + 0x2c], eax
jb 0x405525
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2f0]
add dword [esp + 0x2c], 4
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x2c]
jmp 0x405400
call fcn.00406550
add eax, 0xfffffff0
mov dword [esp + 0x14], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x4055a1
mov ecx, str.init
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405598
cmp dx, di
je 0x405594
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405598
add eax, 4
add ecx, 4
cmp dx, di
jne 0x405572
xor eax, eax
jmp 0x40559d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4055d0
push 1
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4055ba
call fcn.00407b70
mov eax, esi
jmp 0x4055bc
xor eax, eax
cmp dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
jne 0x4055d0
push 1
call fcn.00402c70
add esp, 4
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x60]
fild qword [esp + 0x58]
fdivp st(1)
fmul qword [0x44df98]
fstp qword [esp + 0x28]
call fcn.004051e0
push edi
push edi
push str.Baiduvideobrowser_Debug_NoPrefetch
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_Kl_gzM_0H]
test eax, eax
jne 0x405636
lea eax, [esp + 0x18]
push eax
call fcn.00402d60
mov ecx, dword [esp + 0x38]
push ecx
push 0x4169b8
push str.cmdline_
mov ecx, 0x25
call fcn.00407680
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
push esi
push str.thread_info__TID:_u_NAME:
push str.thread_
mov ecx, 0x10
call fcn.00407680
add esp, 0xc
mov ecx, esi
call fcn.00402600
push 0x416a34
push 0x416af0
mov ecx, 0x25
call fcn.00407680
add esp, 8
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x416a4c
push 0x416af0
mov ecx, 0x25
call fcn.00407680
add esp, 8
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor esi, esi
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], edx
je 0x405732
sub ecx, eax
sar ecx, 2
je 0x405732
mov ebx, ecx
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
push 0x456edc
neg ecx
or ecx, eax
push ecx
call fcn.00411dda
mov edi, eax
add esp, 8
test edi, edi
je 0x405730
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x405730
mov eax, dword [esp + 0x44]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x405730
mov eax, dword [ecx + esi*4]
mov dword [edi + esi*4], eax
add esi, 1
jmp 0x405710
xor esi, esi
fld qword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
sub esp, 8
fstp qword [esp]
push ebx
push ecx
mov ecx, edi
call fcn.00404820
add esp, 0x10
mov edi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.browser
push 0x416af0
mov ecx, 0x25
call fcn.00407680
push esi
call fcn.00402c70
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp eax, esi
je 0x40578c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x4057a9
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4057d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00405110
mov ebx, dword [esp + 0x30]
cmp ebx, esi
je 0x405809
mov eax, dword [0x4572cc]
cmp eax, esi
je 0x405800
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4572cc], esi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x2fc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411d08
mov esp, ebp
pop ebp
ret 0x10