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

Disassembly:
sub esp, 0xad0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea edi, [ebp + 0xe8]
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov eax, dword [edi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x45dd50
cmp eax, esi
jne 0x45dd50
inc dword [edi + 0x18]
jmp 0x45dd6e
cmp byte [edi + 5], bl
je 0x45dd61
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45dd68
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
test dword [ebp + 0x124], 0xfffffffe
jne 0x45deed
mov eax, dword [esp + 0xae4]
mov esi, dword [eax]
cmp esi, ebx
je 0x45dd90
add esi, 4
jmp 0x45dd92
xor esi, esi
push ebx
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.00458ba0
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 1
mov byte [esp + 0x22], bl
mov dword [esp + 0x24], ebx
je 0x45de65
push esi
lea ecx, [esp + 0xbc]
call fcn.00458ad0
lea ecx, [esp + 0x8d8]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x6d8]
call fcn.00440010
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.00436200
lea ecx, [esp + 0x10]
call fcn.004039f0
push str.Picasa.ini
lea ecx, [esp + 0xbc]
call fcn.004a51e0
mov edx, dword [esp + 0xb8]
cmp edx, ebx
je 0x45de1d
add edx, 4
jmp 0x45de1f
xor edx, edx
cmp edx, ebx
mov dword [esp + 0x10], ebx
je 0x45de42
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0049d9d0
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00436200
lea ecx, [esp + 0x10]
call fcn.004039f0
lea ecx, [esp + 0xb8]
call fcn.00431cf0
push 1
push str.Desktop_
lea ecx, [esp + 0x1c]
call fcn.004bb7a0
lea edx, [ebp + 0x254]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004bc000
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x45debd
test dword [eax], 0xffffff00
je 0x45debd
cmp byte [eax + 4], bl
je 0x45debd
cmp byte [esp + 0x22], bl
je 0x45debd
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45deb1
add eax, 4
jmp 0x45deb3
xor eax, eax
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x24]
call fcn.004039f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
call fcn.004039f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.004039f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.004039f0
mov ecx, dword [esp + 0xae4]
push ecx
mov ecx, ebp
call fcn.0045f5d0
mov esi, eax
cmp esi, 0xffffffff
jne 0x45e183
mov eax, dword [esp + 0xae8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xae4]
mov esi, dword [ebp + 0x124]
mov dword [esp + 0x74], eax
mov eax, dword [ecx]
shr esi, 1
cmp eax, ebx
mov dword [esp + 0x34], esi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xbf800000
mov dword [esp + 0x60], 0xbf800000
mov dword [esp + 0x64], 0xbf800000
mov dword [esp + 0x68], 0xbf800000
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], eax
je 0x45dfb3
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
jae 0x45dfb3
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x98]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.004998c0
mov eax, dword [edi + 0x3c]
test al, 1
jne 0x45e023
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x45dff9
mov ecx, edi
call fcn.00463410
test eax, eax
je 0x45e023
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x38]
shr ecx, 1
lea edx, [esp + 0x38]
shl ecx, 7
push edx
add ecx, eax
call fcn.0045fc10
mov eax, dword [edi + 0x3c]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [edi + 0x3c], ecx
lea ecx, [esp + 0x28]
call fcn.004450b0
mov edx, dword [esp + 0xae4]
push edx
lea ecx, [esp + 0x2c]
call fcn.00436200
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x2c], esi
je 0x45e050
lea esi, [eax + 4]
cmp esi, ebx
jne 0x45e054
xor eax, eax
jmp 0x45e08d
mov al, byte [esi]
cmp al, bl
mov ecx, 0x12345678
je 0x45e08b
nop
cmp al, 0x41
jl 0x45e070
cmp al, 0x5a
jg 0x45e070
movsx eax, al
add eax, 0x20
jmp 0x45e073
movsx eax, al
mov edx, ecx
shl edx, 5
mov edi, ecx
add eax, edx
shr edi, 2
add edi, eax
mov al, byte [esi + 1]
xor ecx, edi
inc esi
cmp al, bl
jne 0x45e060
mov eax, ecx
xor edx, edx
div dword [ebp + 0x2f0]
mov esi, dword [ebp + 0x2ec]
mov eax, dword [ebp + 0x2f8]
inc esi
mov dword [ebp + 0x2ec], esi
mov edi, edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x2f4]
mov eax, dword [ecx + 0x10]
cmp eax, ebx
je 0x45e0c8
inc dword [ecx + 0xc]
mov edx, dword [eax]
mov dword [ecx + 0x10], edx
jmp 0x45e0ea
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 0x18]
jae 0x45e0e5
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x14]
inc eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx]
add eax, edx
add esi, edx
mov dword [ecx + 4], esi
jmp 0x45e0ea
call fcn.0050b110
cmp eax, ebx
je 0x45e117
mov ecx, eax
call fcn.00463ed0
mov esi, eax
cmp esi, ebx
je 0x45e117
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 4]
call fcn.00463140
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
mov edx, dword [ebp + 0x2f8]
mov dword [edx + edi*4], esi
lea ecx, [esp + 0x28]
call fcn.004039f0
lea ecx, [esp + 0x8c]
call fcn.00499ac0
lea ecx, [esp + 0x88]
call fcn.004039f0
lea ecx, [esp + 0x84]
mov dword [esp + 0x88], ebx
call fcn.004039f0
lea ecx, [esp + 0x80]
mov dword [esp + 0x84], ebx
call fcn.004039f0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x80], ebx
call fcn.004039f0
lea ecx, [esp + 0x78]
mov dword [esp + 0x7c], ebx
call fcn.004039f0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x18], ebx
je 0x45e1aa
cmp dword [edi + 0x14], ebx
je 0x45e1aa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x14], eax
jne 0x45e1aa
dec dword [edi + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xad0
ret 8
cmp byte [edi + 5], bl
mov dword [edi + 0x14], ebx
je 0x45e1cb
add edi, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xad0
ret 8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xad0
ret 8