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

Disassembly:
sub esp, 0x50
mov eax, dword [0x6a1068]
xor eax, esp
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x58]
push ebx
mov ebx, ecx
push eax
mov ecx, 0x6b10f0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.0048a660
mov dword [esp + 4], eax
test eax, eax
je 0x406a24
push ebp
push esi
xor ebp, ebp
push edi
lea ebx, [ebx]
mov edi, dword [ebx + 0x212]
movzx eax, word [edi + 0x21e]
movzx ecx, word [edi + 0x21c]
imul eax, ecx
movzx esi, bp
cmp esi, eax
jl 0x40681f
push 0
push 0x31
push str.c:userslovemedesktop_src_update_src_client_mh._Interface_cIconGridDialog.h
call fcn.00516310
add esp, 0xc
mov edx, dword [edi + 0x218]
mov ecx, dword [edx + esi*8]
test ecx, ecx
je 0x40688a
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
cmp word [esp + 0x18], ax
jne 0x40688a
mov edi, dword [ebx + 0x212]
movzx eax, word [edi + 0x21e]
movzx ecx, word [edi + 0x21c]
imul eax, ecx
cmp esi, eax
jl 0x406866
push 0
push 0x31
push str.c:userslovemedesktop_src_update_src_client_mh._Interface_cIconGridDialog.h
call fcn.00516310
add esp, 0xc
mov edx, dword [edi + 0x218]
mov esi, dword [edx + esi*8]
test esi, esi
je 0x40688a
mov ecx, dword [ebx + 0x212]
push esi
call fcn.0042ce30
push esi
mov ecx, 0x6b0860
call fcn.0043eb90
inc ebp
cmp ebp, 5
jl 0x4067f0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x52a]
test edi, edi
je 0x4069f0
mov esi, dword [ebx + 0x212]
movzx ecx, word [esi + 0x21e]
movzx edx, word [esi + 0x21c]
mov ebx, dword [esp + 0x64]
imul ecx, edx
movzx ebp, bx
cmp ebp, ecx
jl 0x4068d9
push 0
push 0x31
push str.c:userslovemedesktop_src_update_src_client_mh._Interface_cIconGridDialog.h
call fcn.00516310
add esp, 0xc
mov eax, dword [esi + 0x218]
mov esi, dword [eax + ebp*8]
test esi, esi
je 0x406901
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x212]
push esi
call fcn.0042ce30
push esi
mov ecx, 0x6b0860
call fcn.0043eb90
push 0x52e
call fcn.00565d11
add esp, 4
test eax, eax
je 0x40691d
mov ecx, eax
call fcn.00489f40
mov esi, eax
jmp 0x40691f
xor esi, esi
lea ecx, [esp + 0x3c]
call fcn.0042cf30
lea ecx, [esp + 0x1c]
call fcn.0042cf30
mov eax, dword [edi + 0x33]
push 2
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, 0x6b06f0
call fcn.00431c80
mov edx, dword [edi + 0x37]
push 2
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, 0x6b06f0
call fcn.00431c80
mov eax, dword [esi]
lea ecx, [ebx + 0x109a0]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [eax + 0xb4]
lea ecx, [esp + 0x44]
push ecx
push 0x28
push 0x28
push 0
push 0
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x21a]
add eax, 0x4ac
mov dword [esi + 0x21a], ecx
push eax
mov ecx, esi
call fcn.0048a000
mov edx, 0x8e
mov dword [esi + 0x52a], edi
mov word [esi + 0xc], dx
mov ecx, dword [0x6b0878]
push esi
call fcn.00560560
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x212]
push esi
push ebx
call fcn.0042cba0
lea ecx, [esp + 0x1c]
call fcn.0042cf40
lea ecx, [esp + 0x3c]
call fcn.0042cf40
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00565c32
add esp, 0x50
ret 8
push 0x9ac
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x1d
push 0x6b2fd8
call fcn.004c7640
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00565c32
add esp, 0x50
ret 8
push 0x9ac
mov ecx, 0x6b2fd8
call fcn.004c6410
push eax
push 0x1d
push 0x6b2fd8
call fcn.004c7640
mov ecx, dword [esp + 0x5c]
add esp, 0xc
pop ebx
xor ecx, esp
call fcn.00565c32
add esp, 0x50
ret 8