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

Disassembly:
push 0xffffffffffffffff
push 0x491700
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b30f0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xa8], esi
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x9c], esi
cmp dword [ebx + 0xc], esi
jne 0x46bf5c
mov dword [esp + 0xa8], 1
push esi
call dword [0x496100]
mov edi, dword [ebx + 0x10]
mov ebp, eax
call fcn.00404600
mov eax, dword [edi + 0x10]
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x64], eax
call fcn.00404600
mov ecx, dword [edi + 0x14]
push 1
push ebp
mov dword [esp + 0x70], ecx
call dword [0x4960cc]
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x1b], 0
jne 0x46b775
xor edi, edi
jmp 0x46b77d
call fcn.00404600
mov edi, dword [edi + 0xc]
push edi
push ebp
call dword [0x4960f8]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0x78
mov dword [esp + 0x28], 0x19
cmp eax, 0x64
jb 0x46b7c5
mov dword [esp + 0x24], 0x89
jmp 0x46b7ca
add dword [esp + 0x24], 0x23
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 0x803c
call fcn.00403a70
mov byte [esp + 0xa8], 2
mov edx, dword [0x4b76b4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx - 0xc]
push 0xffe691
push eax
push 0x820
push edx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x38]
mov edi, ebp
call fcn.00404300
cmp dword [ebx + 0x18], 0x64
mov esi, 0x7f
jae 0x46b81b
mov esi, 0x96
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x18], esi
call fcn.00403b20
mov byte [esp + 0xa8], 3
mov ecx, dword [ebx + 0x18]
push ecx
push 0x49a300
lea edi, [esp + 0x40]
call fcn.00403e50
mov edx, dword [esp + 0x40]
mov eax, dword [edx - 0xc]
xor ecx, ecx
add esp, 8
mov dword [esp + 0x20], ecx
test eax, eax
jle 0x46b8b8
test ecx, ecx
jl 0x46b983
cmp ecx, eax
jg 0x46b983
movzx eax, word [edx + ecx*2]
lea edi, [eax - 0x30]
cmp di, 9
ja 0x46b8ac
mov ebx, dword [ebx + 0x34]
movzx eax, ax
sub eax, 0x30
push eax
push 0x30
push esi
push ebp
call fcn.00404b40
mov edx, dword [esp + 0xb0]
mov edi, dword [edx + 0x34]
call fcn.00404600
mov edi, dword [edi + 0x10]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
lea esi, [esi + edi + 1]
mov eax, dword [edx - 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x46b857
mov eax, dword [0x4b6a0c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b6a0c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xa8], 4
push 0x803e
call fcn.00403800
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46b8f8
lea eax, [esp + 0x20]
push eax
mov eax, 0x803e
call fcn.00403980
mov byte [esp + 0xa8], 5
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x64]
mov edx, dword [edx - 0xc]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x40]
mov eax, 0x4d
inc esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
push ecx
mov dword [esp + 0x28], esi
mov esi, dword [0x4960f8]
push ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
call esi
push 0xffe691
push ebp
mov dword [esp + 0x3c], eax
call dword [0x4960e0]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x2c], edi
jne 0x46b98d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push ebp
call dword [0x4960dc]
jmp 0x46b9a8
push 0x80070057
call fcn.00401490
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 0x820
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push ebp
call dword [0x496438]
mov edx, dword [esp + 0x1c]
push edx
push ebp
call dword [0x4960e0]
mov eax, dword [esp + 0x34]
push eax
push ebp
call esi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x46b9e1
mov ecx, dword [esp + 0x14]
push 0
push 0x3e
push ecx
push ebp
mov ebx, eax
call fcn.00404b40
mov ebx, dword [esp + 0xb0]
mov esi, dword [0x4960f8]
mov edi, dword [esp + 0x64]
xor eax, eax
push 0x803d
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00403800
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46ba11
lea edx, [esp + 0x4c]
push edx
mov eax, 0x803d
call fcn.00403980
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx - 0xc]
mov eax, dword [0x4b76b4]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, 0x131
mov dword [esp + 0x24], ecx
mov ecx, 0x19
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x68]
push eax
push ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
call esi
push 0xffe691
push ebp
mov dword [esp + 0x3c], eax
call dword [0x4960e0]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], edi
jne 0x46ba80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push ebp
call dword [0x4960dc]
jmp 0x46ba9b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0x820
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push ebp
call dword [0x496438]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call dword [0x4960e0]
mov edx, dword [esp + 0x34]
push edx
push ebp
call esi
mov eax, dword [ebx + 0x1c]
push eax
push 0x49a300
lea edi, [esp + 0x40]
mov dword [esp + 0x20], 0x127
call fcn.00403e50
mov edx, dword [esp + 0x40]
mov eax, dword [edx - 0xc]
xor ecx, ecx
add esp, 8
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x46bb4c
test ecx, ecx
jl 0x46b983
cmp ecx, eax
jg 0x46b983
movzx eax, word [edx + ecx*2]
lea edi, [eax - 0x30]
cmp di, 9
ja 0x46bb40
mov esi, dword [esp + 0x18]
mov ebx, dword [ebx + 0x34]
movzx eax, ax
sub eax, 0x30
push eax
push 0x30
push esi
push ebp
call fcn.00404b40
mov ecx, dword [esp + 0xb0]
mov edi, dword [ecx + 0x34]
call fcn.00404600
mov edi, dword [edi + 0x10]
mov ebx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + edi + 1]
mov esi, dword [0x4960f8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
mov eax, dword [edx - 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x46badd
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 0x40]
mov edi, dword [esp + 0x20]
mov edi, dword [edi - 0xc]
inc eax
mov ecx, 0x4d
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x48]
push edx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call esi
push 0xffe691
push ebp
mov edi, eax
call dword [0x4960e0]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], edx
jne 0x46bbb9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push ebp
call dword [0x4960dc]
jmp 0x46bbd4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0x820
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push ebp
call dword [0x496438]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call dword [0x4960e0]
push edi
push ebp
call esi
mov edx, dword [0x4b6a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b6a0c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xa8], 7
mov ecx, dword [ebx + 0x20]
push ecx
push 0x49f090
lea edi, [esp + 0x20]
call fcn.00403e50
mov ecx, dword [0x4b937c]
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [0x4b76b4]
mov eax, dword [eax + 0x1c]
mov edi, dword [edx - 0xc]
add esp, 8
push eax
push ecx
call esi
mov dword [esp + 0x14], eax
mov eax, edi
cmp edi, 0xffffffff
jne 0x46bc51
mov edx, dword [esp + 0x18]
push edx
call dword [0x49634c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x54]
push ecx
push eax
mov eax, dword [0x4b937c]
push edx
push eax
call dword [0x496118]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4b937c]
push ecx
push edx
call esi
mov edx, dword [0x4b76b4]
mov edx, dword [edx + 0x1c]
mov edi, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx - 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov ecx, 0x6e
mov dword [esp + 0x3c], ecx
push eax
mov ecx, 0xae
push ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
call esi
push 0x3e5ad8
push ebp
mov dword [esp + 0x3c], eax
call dword [0x4960e0]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x44], edi
jne 0x46bcf9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
push ebp
call dword [0x4960dc]
jmp 0x46bd14
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0x820
lea edx, [esp + 0x40]
push edx
push eax
push ecx
push ebp
call dword [0x496438]
mov edx, dword [esp + 0x14]
push edx
push ebp
call dword [0x4960e0]
mov eax, dword [esp + 0x34]
push eax
push ebp
call esi
mov esi, dword [esp + 0x54]
mov ebx, dword [ebx + 0x2c]
push 0
push 0xb0
add esi, 0x70
push esi
push ebp
call fcn.00404b40
mov ebx, dword [esp + 0xb0]
mov edi, dword [ebx + 0x2c]
call fcn.00404600
add esi, dword [edi + 0x10]
mov edx, dword [0x4b76b4]
mov ebx, dword [ebx + 0x24]
mov edi, dword [0x4960f8]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebx - 0xc]
push eax
mov eax, dword [0x4b937c]
push eax
mov dword [esp + 0x1c], ecx
call edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x46bd92
push ebx
call dword [0x49634c]
mov edx, dword [0x4b937c]
lea ecx, [esp + 0x54]
push ecx
push eax
push ebx
push edx
call dword [0x496118]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4b937c]
push eax
push ecx
call edi
mov edx, dword [0x4b76b4]
mov edx, dword [edx + 0x1c]
mov ebx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
add esi, 2
mov dword [esp + 0x24], esi
mov esi, dword [edx + 0x24]
mov edx, dword [esi - 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
push eax
mov ecx, 0xae
push ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
call edi
push 0x3e5ad8
push ebp
mov dword [esp + 0x3c], eax
call dword [0x4960e0]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x44], ebx
jne 0x46be3f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ecx
push esi
push edx
push eax
push ebp
call dword [0x4960dc]
jmp 0x46be56
mov edx, dword [esp + 0x1c]
push 0x820
lea ecx, [esp + 0x40]
push ecx
push edx
push esi
push ebp
call dword [0x496438]
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [0x4960e0]
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call edi
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [ecx + 0x30]
push 0
push 0xb0
lea eax, [eax + edx + 2]
push eax
push ebp
call fcn.00404b40
mov edx, dword [esp + 0x50]
push edx
push ebp
call edi
mov ecx, dword [esp + 0xb0]
mov dword [ecx + 0xc], eax
test ebp, ebp
je 0x46beab
push ebp
call dword [0x4960fc]
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46bed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46befb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bf23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bf4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 0
mov ebx, dword [esp + 0xb0]
xor esi, esi
mov edx, dword [0x4b6a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b6a0c
call eax
mov edi, dword [esp + 0xb4]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0xa8], esi
lea ecx, [esp + 0x14]
push ecx
mov esi, str.speedldshare.jpg
mov dword [esp + 0xa0], 1
call fcn.00444570
add esp, 4
mov dword [esp + 0xa8], 0xd
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
xor ebp, ebp
cmp eax, esi
je 0x46c003
cmp dword [esi + 0xc], ebp
jl 0x46bfef
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46bfef
call fcn.00401210
mov dword [esp + 0x50], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bfe4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x50]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x46c003
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.004014b0
mov ebx, dword [esp + 0xb0]
xor ebp, ebp
mov dword [esp + 0xa8], ebp
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 0x46c02a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4b954c
mov dword [esp + 0x70], vtable.ATL::Suck::CImage.0
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8d], 0
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
call dword [0x4962d4]
inc dword [0x4b9564]
push 0x4b954c
call dword [0x4962d0]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0x6c], vtable.CAtlJpgImage.0
mov dword [esp + 0xa8], 0x10
mov ebx, dword [ebx + 0xc]
lea esi, [esp + 0x6c]
mov dword [esp + 0x70], ebx
call fcn.0046aed0
mov eax, dword [edi]
push eax
call dword [0x49613c]
mov ecx, dword [edi]
mov ebx, esi
call fcn.0046a9c0
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], 0xffffffff
mov byte [esp + 0x89], al
mov byte [esp + 0x88], al
mov byte [esp + 0xa8], al
mov ecx, esi
push ecx
call fcn.0046c150
mov eax, edi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8