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

Disassembly:
push 0xffffffffffffffff
push 0x457392
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4749e0]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ebx
mov esi, 1
mov dword [esp + 0x518], esi
call fcn.00403d40
mov dword [edi + 4], eax
mov byte [eax + 0x45], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x524]
cmp esi, ebx
mov dword [esp + 0x54], esi
je 0x4026ee
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov dword [esp + 0x14], ebx
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x520]
mov byte [esp + 0x518], 4
cmp dword [edx], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
je 0x402bec
cmp esi, ebx
jne 0x402725
push 0x80004003
call fcn.0044ea30
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], ebx
call edx
cmp eax, ebx
jge 0x402746
push 0x460d90
push esi
push eax
call fcn.0044ea40
cmp word [esp + 0x1c], bx
je 0x402be8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402761
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
push esi
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x402788
push 0x80004003
call fcn.0044ea30
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
jle 0x402be8
xor ebp, ebp
mov dword [esp + 0x30], ebp
push 0x206
lea ecx, [esp + 0x30a]
push ebx
mov byte [esp + 0x520], 5
push ecx
mov word [esp + 0x310], bx
call fcn.004346f0
add esp, 0xc
push 0x103
lea edx, [esp + 0x201]
push ebx
push edx
mov byte [esp + 0x208], bl
call fcn.004346f0
add esp, 0xc
push 0x103
lea eax, [esp + 0xf9]
push ebx
push eax
mov byte [esp + 0x100], bl
call fcn.004346f0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x402827
mov ecx, eax
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x14], eax
je 0x402827
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], ebx
jne 0x40283b
push 0x80004003
call fcn.0044ea30
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov esi, dword [esp + 0x18]
je 0x40284b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push edx
push esi
call eax
cmp dword [esp + 0x14], ebx
jne 0x402871
push 0x80004003
call fcn.0044ea30
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
call fcn.00401e80
mov eax, dword [eax]
cmp eax, ebx
je 0x402888
mov eax, dword [eax]
jmp 0x40288a
xor eax, eax
push eax
lea ecx, [esp + 0x308]
push 0x104
push ecx
call fcn.00432288
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4028e6
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x4028e2
cmp esi, ebx
je 0x4028e2
mov eax, dword [esi]
cmp eax, ebx
je 0x4028c9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4028d9
push eax
call fcn.00416414
add esp, 4
push esi
call fcn.00416414
add esp, 4
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x14], ebx
jne 0x4028f6
push 0x80004003
call fcn.0044ea30
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x28]
call fcn.00401ec0
lea edx, [esp + 0x30]
cmp edx, eax
je 0x40291f
mov ebp, dword [eax]
cmp ebp, ebx
mov dword [esp + 0x30], ebp
je 0x40291f
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x402963
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x40295f
cmp esi, ebx
je 0x40295f
mov eax, dword [esi]
cmp eax, ebx
je 0x402946
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x402956
push eax
call fcn.00416414
add esp, 4
push esi
call fcn.00416414
add esp, 4
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x304]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402970
sub eax, edx
sar eax, 1
je 0x4029a6
push ebx
push ebx
push 0x104
lea edx, [esp + 0x208]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x318]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp ebp, ebx
je 0x4029dd
mov eax, dword [ebp]
cmp eax, ebx
je 0x4029dd
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x4029dd
mov edx, dword [ebp]
push ebx
push ebx
push 0x104
lea ecx, [esp + 0x100]
push ecx
push 0xffffffffffffffff
push edx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, 0xf
lea eax, [esp + 0xf4]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4029f8
sub eax, edx
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x60]
call fcn.00403460
mov byte [esp + 0x518], 6
lea eax, [esp + 0x1fc]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402a33
sub eax, esi
push eax
lea ecx, [esp + 0x200]
push ecx
lea ecx, [esp + 0x40]
call fcn.00403460
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xb8]
push ecx
mov byte [esp + 0x524], 7
call fcn.00403250
lea edx, [esp + 0x78]
push edx
mov edi, eax
mov byte [esp + 0x51c], 8
call fcn.004048d0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x51c], 9
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.004030e0
cmp dword [esp + 0xac], 0x10
jb 0x402abc
mov eax, dword [esp + 0x98]
push eax
call fcn.00416414
add esp, 4
mov edi, 0x10
cmp dword [esp + 0x90], edi
mov esi, 0xf
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x402af1
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00416414
add esp, 4
cmp dword [esp + 0xe4], edi
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x402b1c
mov edx, dword [esp + 0xd0]
push edx
call fcn.00416414
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
jb 0x402b4a
mov eax, dword [esp + 0xb4]
push eax
call fcn.00416414
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x402b72
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00416414
add esp, 4
cmp dword [esp + 0x70], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x402b91
mov edx, dword [esp + 0x5c]
push edx
call fcn.00416414
add esp, 4
add dword [esp + 0x20], 1
cmp ebp, ebx
je 0x402bcf
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x402bcf
mov eax, dword [ebp]
cmp eax, ebx
je 0x402bb6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x402bc6
push eax
call fcn.00416414
add esp, 4
push ebp
call fcn.00416414
add esp, 4
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x24]
jl 0x4027a1
mov esi, dword [esp + 0x524]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x518], 3
je 0x402c00
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x518], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402c18
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
mov byte [esp + 0x518], 1
je 0x402c2c
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
cmp esi, ebx
mov byte [esp + 0x518], bl
je 0x402c3f
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.004321fe
add esp, 0x508
ret 8