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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e5665
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [ebx], esi
call fcn.005d95d0
mov dword [ebx + 4], eax
mov ebx, 0xf
mov dword [esp + 0x104], ebx
mov dword [esp + 0x100], esi
mov byte [esp + 0xf0], 0
mov dword [esp + 0x118], esi
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], esi
mov byte [esp + 0xd4], 0
mov byte [esp + 0x118], 1
mov dword [esp + 0x14], esi
call fcn.005d95d0
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 2
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push 0x61c798
mov dword [esp + 0x40], eax
mov byte [ecx + 4], 0
call fcn.0040b860
push edi
lea ecx, [esp + 0xbc]
call fcn.004b1840
add esp, 0x24
mov byte [esp + 0x118], 2
cmp dword [esp + 0xac], esi
je 0x582801
cmp dword [esp + 0xb0], 0x10
mov ecx, dword [esp + 0x9c]
jae 0x582745
lea ecx, [esp + 0x9c]
mov eax, ecx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb8], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x582760
sub eax, ebx
push eax
push ecx
lea ecx, [esp + 0xbc]
call fcn.0040b860
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x120], 3
call fcn.004b0360
add esp, 8
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x124], 4
call fcn.0040b390
mov ebx, 0x10
cmp dword [esp + 0x40], ebx
jb 0x5827ca
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b877
add esp, 4
mov byte [esp + 0x118], 2
cmp dword [esp + 0xcc], ebx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
jb 0x5827fc
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0059b877
add esp, 4
mov ebx, 0xf
lea edx, [esp + 0x1c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 2
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push 0x61a268
mov dword [esp + 0x44], 0xffffffff
mov byte [ecx + 4], 0
call fcn.0040b860
push edi
lea ecx, [esp + 0xa0]
call fcn.004b1840
add esp, 0x24
mov byte [esp + 0x118], 5
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x58294e
mov dword [esp + 0x14], esi
call fcn.005d95d0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004b0360
add esp, 8
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x124], 6
call fcn.0040b390
mov byte [esp + 0x118], 5
cmp dword [esp + 0x40], 0x10
jb 0x5828a9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
test eax, fcn.00489120
jne 0x582941
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
push ecx
add esi, 0xc
call fcn.00444ba0
push 4
push str.tr
push edi
mov eax, ebx
call fcn.004b2430
mov ebx, eax
cmp ebx, 0xffffffff
je 0x58294c
push 1
lea edx, [esp + 0x14]
push edx
add ebx, 4
push edi
mov eax, ebx
mov byte [esp + 0x1c], 0x26
call fcn.004b2430
sub eax, ebx
push eax
mov ecx, ebx
lea esi, [esp + 0x2c]
mov edx, edi
call fcn.004a29f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x124], 7
call fcn.0040b390
mov byte [esp + 0x118], 5
cmp dword [esp + 0x40], 0x10
jb 0x58293f
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b877
add esp, 4
xor esi, esi
cmp ebx, 0xffffffff
jne 0x582852
jmp 0x58294e
xor esi, esi
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 2
mov ebx, 0xf
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], esi
push 0x61c79c
mov byte [ecx + 4], 0
call fcn.0040b860
push edi
lea ecx, [esp + 0x84]
call fcn.004b1840
add esp, 0x24
mov byte [esp + 0x118], 8
cmp dword [esp + 0x74], esi
jne 0x582a9b
test byte [0x65b670], 1
jne 0x5829bc
or dword [0x65b670], 1
push 0x5fbd80
mov dword [0x65b674], 0x6155fc
call fcn.005b89dc
add esp, 4
mov edx, dword [esp + 0x24]
mov edi, 0x10
cmp dword [esp + 0x78], edi
mov eax, 0x16
mov ecx, 0x65b674
mov dword [edx], eax
mov dword [edx + 4], ecx
jb 0x5829e7
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x94], edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], esi
mov byte [esp + 0x64], 0
jb 0x582a0d
mov edx, dword [esp + 0x80]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], esi
mov byte [esp + 0x80], 0
jb 0x582a3c
mov eax, dword [esp + 0x9c]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
jb 0x582a6b
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x104], edi
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], esi
mov byte [esp + 0xd4], 0
jb 0x582d65
mov edx, dword [esp + 0xf0]
push edx
jmp 0x582d5d
push 9
push str.urn:btih:
mov eax, 9
xor ebx, ebx
lea ecx, [esp + 0x68]
call fcn.00437100
test eax, eax
je 0x582b78
mov esi, dword [esp + 0x24]
push 0x16
call fcn.004b2660
mov esi, 0x10
cmp dword [esp + 0x78], esi
jb 0x582add
mov eax, dword [esp + 0x64]
push eax
call fcn.0059b877
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x94], esi
mov edi, 0xf
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x582b09
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xb0], esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x582b37
mov edx, dword [esp + 0x9c]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xe8], esi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
jb 0x582b65
mov eax, dword [esp + 0xd4]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x104], esi
mov dword [esp + 0xe8], edi
jmp 0x582d45
xor eax, eax
xor ebx, ebx
cmp dword [esp + 0x74], 0x31
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
jne 0x582bcd
mov eax, dword [esp + 0x64]
mov edi, 0x10
cmp dword [esp + 0x78], edi
jae 0x582bb9
lea eax, [esp + 0x64]
lea ecx, [eax + 9]
lea eax, [esp + 0xb4]
call fcn.004b1bd0
jmp 0x582c4c
push 0xffffffffffffffff
mov ecx, 9
lea esi, [esp + 0x48]
lea edx, [esp + 0x64]
call fcn.004a29f0
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x11c], 9
call fcn.004b1470
add esp, 4
lea ecx, [esp + 0xb4]
push ecx
mov ecx, eax
call fcn.00582600
mov esi, 0x10
cmp dword [esp + 0x40], esi
jb 0x582c1f
mov edx, dword [esp + 0x2c]
push edx
call fcn.0059b877
add esp, 4
mov byte [esp + 0x118], 8
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x582c4a
mov eax, dword [esp + 0x48]
push eax
call fcn.0059b877
add esp, 4
mov edi, esi
cmp dword [esp + 0x100], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0xbc]
mov dword [eax + 0x30], edx
mov edx, dword [esp + 0xc0]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], ecx
je 0x582c9e
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xf4]
push edx
lea ecx, [eax + 0x40]
call fcn.0040b390
cmp dword [esp + 0x78], edi
jb 0x582cb1
mov eax, dword [esp + 0x64]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x94], edi
mov esi, 0xf
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x582cdb
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x582d09
mov edx, dword [esp + 0x9c]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xe8], edi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
jb 0x582d37
mov eax, dword [esp + 0xd4]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x104], edi
mov dword [esp + 0xe8], esi
mov byte [esp + 0xd4], bl
mov dword [esp + 0xe4], ebx
jb 0x582d65
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret