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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49ceb2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4d58b0]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push esi
push edi
mov eax, dword [0x4d58b0]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
push 4
mov ebx, ecx
call fcn.0043dab4
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40ba7a
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x40ba7c
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
push edi
mov dword [esp + 0x4bc], 1
mov edx, dword [ebx + 0xf4]
mov esi, dword [0x49f67c]
push edi
push 0x1004
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jle 0x40bb51
lea esp, [esp]
mov eax, dword [ebx + 0xf4]
push 2
push edi
push 0x102c
push eax
call esi
test eax, eax
je 0x40bb32
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40bae1
xor ecx, ecx
jmp 0x40baea
mov ecx, dword [esp + 0x30]
sub ecx, eax
sar ecx, 2
mov eax, dword [esp + 0x2c]
mov edx, eax
sub edx, dword [esp + 0x28]
sar edx, 2
cmp edx, ecx
jae 0x40bb06
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x2c], eax
jmp 0x40bb32
mov dword [esp + 0x18], eax
cmp dword [esp + 0x28], eax
jbe 0x40bb15
call fcn.0045e7a3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040c100
mov ecx, dword [ebx + 0xf4]
push 0
push 0
push 0x1004
inc edi
push ecx
mov dword [esp + 0x24], edi
call esi
cmp edi, eax
jl 0x40bac0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov esi, eax
sub esi, ecx
sar esi, 2
dec esi
mov dword [esp + 0x14], esi
js 0x40bd69
lea edi, [ebx + 0xd4]
mov dword [esp + 0x34], edi
jmp 0x40bb88
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40bb9a
call fcn.0045e7a3
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
push 0x100
lea edx, [esp + 0x2a8]
push edx
push 1
push eax
mov ecx, edi
call fcn.0044012e
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
sar ecx, 2
cmp esi, ecx
jb 0x40bbc8
call fcn.0045e7a3
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
push 0x100
lea edx, [esp + 0xa8]
push edx
push 0
push ecx
mov ecx, edi
call fcn.0044012e
movzx edx, byte [0x4daea8]
shl edx, 9
add edx, str.Internet_images_
push edx
lea eax, [esp + 0x2a8]
push eax
call dword [0x49f374]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
sar ecx, 2
test eax, eax
jne 0x40bdb5
cmp esi, ecx
jb 0x40bc21
call fcn.0045e7a3
movzx edx, byte [0x4daea8]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
shl edx, 9
add edx, 0x4c12a0
push edx
push 1
push ecx
mov ecx, edi
call fcn.00486600
call fcn.0043dffa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40be6b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x4b8], 2
test ecx, 0xffff0000
jne 0x40bc9a
mov edx, ecx
movzx esi, dx
push esi
call fcn.0043df6b
test eax, eax
je 0x40bcc5
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.004093b0
jmp 0x40bcc5
lea eax, [esp + 0xa4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bca4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x20]
call fcn.00409730
mov byte [esp + 0x4b8], 3
mov eax, dword [0x4dfcc0]
mov edx, dword [eax + 4]
mov ebx, dword [0x4dfcac]
lea edi, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
mov dword [esp + 0x60], eax
call fcn.0040c500
mov ecx, 0x3fffffff
sub ecx, dword [0x4dfcc4]
cmp ecx, 1
jb 0x40be75
inc dword [0x4dfcc4]
mov dword [edi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
test ebx, ebx
jne 0x40bd18
call fcn.0045e7a3
mov edi, dword [edi]
test ebx, ebx
je 0x40bd22
mov ebx, dword [ebx]
jmp 0x40bd24
xor ebx, ebx
cmp edi, dword [ebx + 0x14]
jne 0x40bd2e
call fcn.0045e7a3
mov byte [esp + 0x4b8], 1
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 0x40bd56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
dec esi
mov dword [esp + 0x14], esi
jns 0x40bb80
xor esi, esi
cmp ecx, esi
je 0x40bd78
push ecx
call fcn.0043dae3
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.0043dae3
add esp, 4
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.0045d9fd
mov esp, ebp
pop ebp
ret
cmp esi, ecx
jb 0x40bdbe
call fcn.0045e7a3
movzx edx, byte [0x4daea8]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
shl edx, 9
add edx, str.Internet_images_
push edx
push 1
push ecx
mov ecx, edi
call fcn.00486600
mov eax, dword [0x4dfcac]
mov edx, dword [0x4dfcc0]
mov ecx, dword [edx]
mov edi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
test eax, eax
je 0x40bdff
mov ebx, dword [eax]
jmp 0x40be01
xor ebx, ebx
mov ebx, dword [ebx]
test eax, eax
je 0x40be0b
mov eax, dword [eax]
jmp 0x40be0d
xor eax, eax
mov eax, dword [eax]
push edx
push ebx
push ecx
push eax
lea edx, [esp + 0x58]
push edx
lea ebx, [esp + 0xb8]
call fcn.0040c690
mov ebx, dword [eax + 4]
add esp, 0x14
cmp edi, dword [eax]
je 0x40be33
call fcn.0045e7a3
mov edi, dword [esp + 0x40]
mov eax, dword [0x4dfcc0]
mov dword [esp + 0x3c], eax
test edi, edi
je 0x40be4c
cmp edi, dword [0x4dfcac]
je 0x40be51
call fcn.0045e7a3
cmp ebx, dword [esp + 0x3c]
je 0x40bd5a
push ebx
push edi
lea edi, [esp + 0x60]
call fcn.0040bf80
jmp 0x40bd5a
push 0x80004005
call fcn.00409d60
push 0x10
mov esi, 0xf
xor edi, edi
push 0x4c33dc
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], edi
mov byte [esp + 0x94], 0
call fcn.00408f90
lea ecx, [esp + 0x60]
mov byte [esp + 0x4b8], 4
call fcn.0045e318
push 0xffffffffffffffff
mov byte [esp + 0x4bc], 5
push edi
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], 0x49faa4
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], 0
call fcn.00408b70
push 0x4cf150
lea edx, [esp + 0x64]
mov byte [esp + 0x4bc], 4
push edx
mov dword [esp + 0x68], 0x49fb00
call fcn.0045f1a1
int3