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

Disassembly:
push 0xffffffffffffffff
push 0x424f60
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x42f5ac]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f5ac]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb0]
mov edi, dword [esp + 0xac]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov eax, 0xf
mov dword [esp + 0x24], 0xfffffff5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [edi + 0x1c4], ebx
mov ecx, dword [edi + 0x1bc]
mov eax, dword [ecx]
mov ebp, dword [edi + 0x1a8]
mov byte [esp + 0xa4], 3
mov esi, dword [edi + 0x1bc]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1a8]
cmp ebp, ebx
je 0x4045f4
cmp ebp, eax
je 0x4045f9
call fcn.00410931
cmp dword [esp + 0x18], esi
je 0x4048af
cmp ebp, ebx
jne 0x40462e
call fcn.00410931
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x40461c
call fcn.00410931
mov esi, dword [esp + 0x18]
add esi, 8
cmp dword [esi + 0x18], 0x10
jb 0x404633
mov eax, dword [esi + 4]
jmp 0x404636
mov eax, dword [ebp]
jmp 0x40460e
lea eax, [esi + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push str.HarmonyDownloadOpenSessionEx:_iter__d_value_is__s_n
call fcn.0040e850
inc dword [esp + 0x28]
add esp, 0xc
cmp ebp, ebx
jne 0x404671
call fcn.00410931
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x404666
call fcn.00410931
cmp dword [esi + 0x18], 0x10
jb 0x404676
mov eax, dword [esi + 4]
jmp 0x404679
mov eax, dword [ebp]
jmp 0x404658
lea eax, [esi + 4]
push str.patch
push eax
call fcn.00402c70
add esp, 8
test eax, eax
je 0x4046da
cmp ebp, ebx
jne 0x4046fe
call fcn.00410931
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x4046a4
call fcn.00410931
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x88]
call fcn.004014c0
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x4046cc
lea eax, [esp + 0x80]
push eax
push str.HarmonyDownloadOpenSessionEx:_Available_Q_matches_patch__value_is__s_n
call fcn.0040e850
add esp, 8
cmp ebp, ebx
jne 0x404703
call fcn.00410931
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x4046f3
call fcn.00410931
cmp dword [esi + 0x18], 0x10
jb 0x404708
mov eax, dword [esi + 4]
jmp 0x40470b
mov eax, dword [ebp]
jmp 0x404696
mov eax, dword [ebp]
jmp 0x4046e5
lea eax, [esi + 4]
push str.direct
push eax
call fcn.00402c70
add esp, 8
test eax, eax
je 0x40476a
cmp ebp, ebx
jne 0x404765
call fcn.00410931
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x404736
call fcn.00410931
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x50]
call fcn.004014c0
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x404752
lea eax, [esp + 0x48]
push eax
push str.HarmonyDownloadOpenSessionEx:_Available_Q_matches_direct__value_is__s_n
call fcn.0040e850
add esp, 8
jmp 0x40488a
mov eax, dword [ebp]
jmp 0x404728
cmp ebp, ebx
jne 0x40478e
call fcn.00410931
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x404783
call fcn.00410931
cmp dword [esi + 0x18], 0x10
jb 0x404793
mov eax, dword [esi + 4]
jmp 0x404796
mov eax, dword [ebp]
jmp 0x404775
lea eax, [esi + 4]
push str.print
push eax
call fcn.00402c70
add esp, 8
test eax, eax
je 0x4047f5
cmp ebp, ebx
jne 0x4047f0
call fcn.00410931
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x4047c1
call fcn.00410931
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x6c]
call fcn.004014c0
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x4047dd
lea eax, [esp + 0x64]
push eax
push str.HarmonyDownloadOpenSessionEx:_Available_Q_matches_print__value_is__d_n
call fcn.0040e850
add esp, 8
jmp 0x40488a
mov eax, dword [ebp]
jmp 0x4047b3
cmp ebp, ebx
jne 0x404819
call fcn.00410931
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x40480e
call fcn.00410931
cmp dword [esi + 0x18], 0x10
jb 0x40481e
mov eax, dword [esi + 4]
jmp 0x404821
mov eax, dword [ebp]
jmp 0x404800
lea eax, [esi + 4]
push str.hold
push eax
call fcn.00402c70
add esp, 8
test eax, eax
je 0x40487d
cmp ebp, ebx
jne 0x404878
call fcn.00410931
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x40484c
call fcn.00410931
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x34]
call fcn.004014c0
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x404868
lea eax, [esp + 0x2c]
push eax
push str.HarmonyDownloadOpenSessionEx:_Available_Q_matches_hold_value_is__d_n
call fcn.0040e850
add esp, 8
jmp 0x40488a
mov eax, dword [ebp]
jmp 0x40483e
push str.HarmonyDownloadOpenSessionEx:_Strange___seems_like_there_is_no_available_Q._n
call fcn.0040e850
add esp, 4
cmp ebp, ebx
jne 0x4048aa
call fcn.00410931
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x14]
jne 0x4048a3
call fcn.00410931
mov eax, dword [esi]
jmp 0x4045dc
mov eax, dword [ebp]
jmp 0x404895
cmp dword [esp + 0x90], ebx
je 0x404914
mov eax, 0x10
cmp dword [edi + 0x38], eax
jb 0x4048c7
mov ecx, dword [edi + 0x24]
jmp 0x4048ca
lea ecx, [edi + 0x24]
cmp dword [esp + 0x94], eax
mov eax, dword [esp + 0x80]
jae 0x4048e1
lea eax, [esp + 0x80]
push ebx
lea edx, [edi + 0x1cc]
push edx
mov edx, dword [edi + 0x1c8]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push edx
call sub.harmony10.dll_DL_openSession
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [edi + 0x1c4], 1
cmp esi, ebx
je 0x404a09
cmp dword [esp + 0x58], ebx
je 0x404963
mov eax, 0x10
cmp dword [edi + 0x38], eax
jb 0x404929
mov ecx, dword [edi + 0x24]
jmp 0x40492c
lea ecx, [edi + 0x24]
cmp dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
jae 0x40493a
lea eax, [esp + 0x48]
mov ebp, dword [esp + 0x20]
push ebx
lea edx, [edi + 0x1cc]
push edx
push ecx
push ebp
push eax
mov eax, dword [edi + 0x1c8]
push eax
call sub.harmony10.dll_DL_openSession
mov esi, eax
mov dword [edi + 0x1c4], 2
jmp 0x40496b
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x404a09
cmp dword [esp + 0x74], ebx
je 0x4049bc
mov eax, 0x10
cmp dword [edi + 0x38], eax
jb 0x404988
mov ecx, dword [edi + 0x24]
jmp 0x40498b
lea ecx, [edi + 0x24]
cmp dword [esp + 0x78], eax
mov eax, dword [esp + 0x64]
jae 0x404999
lea eax, [esp + 0x64]
push ebx
lea edx, [edi + 0x1cc]
push edx
push ecx
mov ecx, dword [edi + 0x1c8]
push ebp
push eax
push ecx
call sub.harmony10.dll_DL_openSession
mov esi, eax
mov dword [edi + 0x1c4], 3
cmp esi, ebx
je 0x404a09
cmp dword [esp + 0x3c], ebx
je 0x404a09
mov eax, 0x10
cmp dword [edi + 0x38], eax
jb 0x4049d5
mov ecx, dword [edi + 0x24]
jmp 0x4049d8
lea ecx, [edi + 0x24]
cmp dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
jae 0x4049e6
lea eax, [esp + 0x2c]
push ebx
lea edx, [edi + 0x1cc]
push edx
mov edx, dword [edi + 0x1c8]
push ecx
push ebp
push eax
push edx
call sub.harmony10.dll_DL_openSession
mov esi, eax
mov dword [edi + 0x1c4], 4
mov eax, dword [edi + 0x1c4]
push eax
push str.HarmonyDownloadOpenSessionEx:_downloaded_to__d_n
call fcn.0040e850
push esi
call fcn.00402ce0
mov edi, 0x10
add esp, 0xc
mov esi, eax
cmp dword [esp + 0x40], edi
jb 0x404a3d
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00410663
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp dword [esp + 0x78], edi
jb 0x404a61
mov edx, dword [esp + 0x64]
push edx
call fcn.00410663
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x5c], edi
jb 0x404a80
mov eax, dword [esp + 0x48]
push eax
call fcn.00410663
add esp, 4
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x94], edi
jb 0x404aa5
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00410663
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004107c5
add esp, 0x94
ret