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

Disassembly:
sub esp, 0xb70
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x15c]
and ecx, 0xff
lea eax, [esp + 0x15c]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x364]
or ecx, 0x100
and eax, 0xff
or eax, 0x100
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x364], eax
lea ecx, [esp + 0x56c]
mov dword [esp + 0x568], ecx
mov ecx, dword [esp + 0x774]
lea eax, [esp + 0x774]
mov dword [esp + 0x770], eax
mov eax, dword [esp + 0x97c]
lea edx, [esp + 0x364]
mov dword [esp + 0x360], edx
mov edx, dword [esp + 0x56c]
and ecx, 0xff
or ecx, 0x100
and eax, 0xff
and edx, 0xff
or eax, 0x100
or edx, 0x100
mov dword [esp + 0x774], ecx
mov ecx, dword [esp + 0xb84]
xor ebp, ebp
mov dword [esp + 0x97c], eax
mov eax, dword [ecx]
cmp eax, ebp
mov dword [esp + 0x56c], edx
lea edx, [esp + 0x97c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x15c], 0x80
mov byte [esp + 0x160], 0
mov byte [esp + 0x364], 0x80
mov byte [esp + 0x368], 0
mov byte [esp + 0x56c], 0x80
mov byte [esp + 0x570], 0
mov byte [esp + 0x774], 0x80
mov byte [esp + 0x778], 0
mov dword [esp + 0x978], edx
mov byte [esp + 0x97c], 0x80
mov byte [esp + 0x980], 0
je 0x48093a
mov ecx, dword [eax]
shr ecx, 8
cmp ecx, ebp
je 0x48093a
cmp eax, ebp
je 0x48091b
lea ecx, [eax + 4]
jmp 0x48091d
xor ecx, ecx
cmp byte [ecx], 0
je 0x48093a
cmp eax, ebp
je 0x48092b
add eax, 4
jmp 0x48092d
xor eax, eax
push eax
lea ecx, [esp + 0x15c]
call fcn.004a4d20
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x97c]
push eax
call fcn.0043d880
add esp, 8
push 0x6b8ff8
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x6b8df0
call fcn.00440010
mov eax, dword [esp + 0x20]
shr eax, 1
cmp eax, ebp
je 0x480b10
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.00483c40
test al, al
je 0x480b10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov ecx, edx
shr edx, 1
and ecx, 1
cmp eax, edx
mov ebx, eax
je 0x480b10
cmp ecx, ebp
je 0x480a43
xor edi, edi
cmp eax, ebp
je 0x480a15
lea ecx, [eax*4 + 4]
push ecx
mov edi, eax
call fcn.004a1180
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x480a2a
push fcn.004450b0
push edi
lea esi, [eax + 4]
push 4
push esi
mov dword [eax], edi
call fcn.00430db0
mov edi, esi
cmp edi, ebp
je 0x480a2a
mov ebp, dword [esp + 0x20]
shr ebp, 1
cmp ebp, ebx
jbe 0x4809f4
mov ebp, ebx
xor esi, esi
test ebp, ebp
jbe 0x480a15
lea ebx, [ebx]
mov edx, dword [esp + 0x1c]
lea eax, [edx + esi*4]
push eax
lea ecx, [edi + esi*4]
call fcn.00436200
inc esi
cmp esi, ebp
jb 0x480a00
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x480a24
push 3
call fcn.00430c60
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov edi, dword [esp + 0x20]
lea eax, [ebx + ebx]
mov ecx, eax
xor ecx, edi
and ecx, 1
xor ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x480b10
mov esi, 1
cmp eax, esi
jb 0x480a56
lea esp, [esp]
add esi, esi
cmp esi, eax
jbe 0x480a50
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebp
fild qword [esp + 0x3c]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x480a81
mov eax, 1
shl eax, cl
jmp 0x480a83
xor eax, eax
cmp eax, edx
jae 0x480a89
add eax, eax
cmp eax, esi
je 0x480afc
xor edi, edi
cmp esi, ebp
je 0x480ae7
lea edx, [esi*4 + 4]
push edx
call fcn.004a1180
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x480afc
push fcn.004450b0
push esi
lea edi, [eax + 4]
push 4
push edi
mov dword [eax], esi
call fcn.00430db0
cmp edi, ebp
je 0x480afc
mov ebp, dword [esp + 0x20]
shr ebp, 1
cmp ebp, esi
jbe 0x480acc
mov ebp, esi
xor esi, esi
test ebp, ebp
jbe 0x480ae7
mov eax, dword [esp + 0x1c]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [edi + esi*4]
call fcn.00436200
inc esi
cmp esi, ebp
jb 0x480ad2
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x480af6
push 3
call fcn.00430c60
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov edi, dword [esp + 0x20]
lea eax, [ebx + ebx]
mov edx, eax
xor edx, edi
and edx, 1
xor edx, eax
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x28]
call fcn.004039f0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [eax + 0x1164]
lea ebx, [eax + 0x1164]
shr edi, 1
cmp ecx, ebp
mov dword [esp + 0x3c], edi
je 0x480b3e
push 3
call fcn.00430c60
mov ecx, dword [ebx + 4]
and ecx, 1
xor esi, esi
cmp edi, ebp
mov dword [ebx], ebp
mov dword [ebx + 4], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], esi
jbe 0x480ff3
nop
lea esp, [esp]
cmp esi, 0xa
jae 0x480ff3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + esi*4]
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x480fd5
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
jae 0x480b97
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x480fd5
or ecx, 0xffffffff
lea edi, [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebp
je 0x480fd5
mov esi, 1
lea esp, [esp]
mov ecx, dword [esp + 0xb84]
lea eax, [esp + 0x14]
push eax
push esi
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x24], ebp
call fcn.0043e520
add esp, 0x10
test eax, eax
jne 0x480c70
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], eax
je 0x480c0e
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x480c0e
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x50]
call fcn.004998c0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0043f550
add esp, 0xc
test eax, eax
jne 0x480c51
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x480c42
add eax, 4
jmp 0x480c44
xor eax, eax
push eax
call fcn.004b5740
add esp, 4
test al, al
jne 0x480c88
lea ecx, [esp + 0x44]
call fcn.00499ac0
lea ecx, [esp + 0x18]
call fcn.004039f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004039f0
lea ecx, [esp + 0x14]
call fcn.004039f0
inc esi
cmp esi, 5
jb 0x480bc0
jmp 0x480fd1
mov eax, dword [ebx + 4]
test al, 1
jne 0x480cca
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x480ca3
mov ecx, ebx
call fcn.004400e0
test eax, eax
je 0x480cca
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [esp + 0x14]
shr ecx, 1
push eax
lea ecx, [edx + ecx*4]
call fcn.00436200
mov eax, dword [ebx + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [ebx + 4], ecx
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push ebp
push eax
mov dword [esp + 0x48], ebp
call fcn.0043fc50
add esp, 0x14
test eax, eax
jne 0x480d32
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x34]
je 0x480d32
lea ecx, [esp + 0x18]
call fcn.004039f0
mov eax, dword [esp + 0x34]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x480d32
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
jae 0x480d29
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x480d32
lea ecx, [esp + 0x18]
call fcn.0049d350
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0043e430
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x1114]
mov ecx, dword [esp + 0x54]
add esp, 8
cmp ecx, eax
ja 0x480d60
cmp dword [esp + 0x50], eax
jbe 0x480df2
push 0xffffffffffffffff
lea ecx, [esp + 0xc8]
call fcn.00495350
mov eax, dword [esi + 0x1114]
push ebp
lea edx, [esp + 0x48]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], ebp
call fcn.004963b0
lea ecx, [esp + 0x11c]
call fcn.004996f0
lea ecx, [esp + 0x114]
call fcn.004996f0
lea ecx, [esp + 0x10c]
call fcn.00453480
lea ecx, [esp + 0x104]
call fcn.00453480
lea ecx, [esp + 0xfc]
call fcn.004996f0
lea ecx, [esp + 0xf4]
call fcn.004996f0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push str.openwith__d
push edx
mov dword [esp + 0x44], ebp
call fcn.00403a60
add esp, 0xc
push ebp
push ebp
push ebp
lea ecx, [esp + 0x88]
call fcn.004998c0
cmp dword [esp + 0x18], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebp
mov byte [esp + 0xac], 0
mov byte [esp + 0xad], 1
mov dword [esp + 0xb0], ebp
je 0x480e91
lea ecx, [esp + 0xa4]
call fcn.004039f0
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0xa4], eax
je 0x480e91
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x480e85
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x480e91
lea ecx, [esp + 0xa4]
call fcn.0049d350
mov edx, dword [esp + 0xa8]
cmp edx, dword [esp + 0x38]
je 0x480ee8
lea ecx, [esp + 0xa8]
call fcn.004039f0
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov dword [esp + 0xa8], eax
je 0x480ee8
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x480edc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x480ee8
lea ecx, [esp + 0xa8]
call fcn.0049d350
lea eax, [esp + 0x44]
lea edx, [esi + 0x1110]
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0xb4], edx
call fcn.00499b00
mov eax, dword [esi + 0x110c]
add esi, 0x1108
test al, 1
jne 0x480f53
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x480f2a
mov ecx, esi
call fcn.00483ff0
test eax, eax
je 0x480f53
mov ecx, dword [esi + 4]
mov eax, dword [esi]
shr ecx, 1
imul ecx, ecx, 0x38
lea edx, [esp + 0x7c]
push edx
add ecx, eax
call fcn.00483940
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x28]
inc eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x28], eax
call fcn.004039f0
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa8], ebp
call fcn.004039f0
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa4], ebp
call fcn.00499ac0
lea ecx, [esp + 0x38]
call fcn.004039f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], ebp
call fcn.004039f0
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], ebp
call fcn.00499ac0
lea ecx, [esp + 0x18]
call fcn.004039f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004039f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.004039f0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
call fcn.004039f0
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
jb 0x480b60
mov edx, dword [esp + 0x10]
test dword [edx + 0x110c], 0xfffffffe
je 0x48131f
push ebp
push ebp
push ebp
lea ecx, [esp + 0x50]
call fcn.004998c0
push str.Open_With...
push str.ss::openwith_separator
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov byte [esp + 0x7c], 0
mov byte [esp + 0x7d], 1
mov dword [esp + 0x80], ebp
call fcn.004cd840
mov esi, eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esi]
add esp, 8
cmp eax, ecx
je 0x481089
lea ecx, [esp + 0x6c]
call fcn.004039f0
mov eax, dword [esi]
cmp eax, ebp
mov dword [esp + 0x6c], eax
je 0x481089
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x481080
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x481089
lea ecx, [esp + 0x6c]
call fcn.0049d350
or ecx, 0xffffffff
xor eax, eax
mov edi, str.separator
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.separator
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.0049d9d0
mov edx, dword [esp + 0x70]
cmp edx, dword [esp + 0x14]
je 0x4810f6
lea ecx, [esp + 0x70]
call fcn.004039f0
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0x70], eax
je 0x4810f6
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x4810ed
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x4810f6
lea ecx, [esp + 0x70]
call fcn.0049d350
lea ecx, [esp + 0x14]
call fcn.004039f0
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x110c]
mov eax, ecx
shr eax, 1
lea ebx, [eax + 1]
lea edx, [ebp + 0x1110]
and ecx, 1
cmp ebx, eax
mov byte [esp + 0x74], 1
mov dword [esp + 0x78], edx
jne 0x481131
mov eax, dword [ebp + 0x1108]
jmp 0x4812b6
test ecx, ecx
je 0x4811b2
xor edi, edi
test ebx, ebx
je 0x4811a3
mov eax, ebx
imul eax, eax, 0x38
add eax, 4
push eax
call fcn.00489377
add esp, 4
test eax, eax
je 0x481167
push fcn.00480350
push ebx
lea edi, [eax + 4]
push 0x38
push edi
mov dword [eax], ebx
call fcn.00430db0
test edi, edi
jne 0x48116e
xor edi, edi
jmp 0x48129a
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x110c]
shr eax, 1
cmp eax, ebx
jbe 0x481180
mov eax, ebx
test eax, eax
jbe 0x4811a3
xor esi, esi
mov ebp, eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1108]
add eax, esi
push eax
lea ecx, [edi + esi]
call fcn.00483940
add esi, 0x38
dec ebp
jne 0x481188
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x1108]
jmp 0x481289
mov esi, 1
cmp ebx, esi
jb 0x4811c6
nop
lea esp, [esp]
add esi, esi
cmp esi, ebx
jbe 0x4811c0
mov edi, dword [ebp + 0x1108]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
fild qword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4811fb
mov edx, 1
shl edx, cl
jmp 0x4811fd
xor edx, edx
cmp edx, eax
jae 0x481203
add edx, edx
cmp edx, esi
je 0x48129e
xor edi, edi
test esi, esi
je 0x48127b
mov edx, esi
imul edx, edx, 0x38
add edx, 4
push edx
call fcn.00489377
add esp, 4
test eax, eax
je 0x48123d
push fcn.00480350
push esi
lea edi, [eax + 4]
push 0x38
push edi
mov dword [eax], esi
call fcn.00430db0
test edi, edi
jne 0x481241
xor edi, edi
jmp 0x48129a
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x110c]
shr eax, 1
cmp eax, esi
jbe 0x481253
mov eax, esi
test eax, eax
jbe 0x48127b
xor esi, esi
mov ebp, eax
nop
lea esp, [esp]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1108]
add edx, esi
push edx
lea ecx, [edi + esi]
call fcn.00483940
add esi, 0x38
dec ebp
jne 0x481260
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x1108]
test ecx, ecx
je 0x481294
test ecx, ecx
je 0x481294
push 3
call fcn.004842b0
mov dword [esi + 0x1108], edi
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x110c]
lea eax, [ebx + ebx]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [ebp + 0x110c], ecx
mov eax, edi
test eax, eax
je 0x4812f8
mov eax, dword [ebp + 0x110c]
shr eax, 1
dec eax
je 0x4812e8
mov esi, eax
imul esi, esi, 0x38
mov edi, eax
lea esp, [esp]
mov edx, dword [ebp + 0x1108]
lea ecx, [esi + edx]
lea eax, [ecx - 0x38]
push eax
call fcn.00483940
sub esi, 0x38
dec edi
jne 0x4812d0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x1108]
call fcn.00483940
lea ecx, [esp + 0x70]
call fcn.004039f0
xor esi, esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], esi
call fcn.004039f0
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], esi
call fcn.00499ac0
xor ebp, ebp
lea ecx, [esp + 0x978]
call fcn.004039f0
lea ecx, [esp + 0x770]
mov dword [esp + 0x978], ebp
call fcn.004039f0
lea ecx, [esp + 0x568]
mov dword [esp + 0x770], ebp
call fcn.004039f0
lea ecx, [esp + 0x360]
mov dword [esp + 0x568], ebp
call fcn.004039f0
lea ecx, [esp + 0x158]
mov dword [esp + 0x360], ebp
call fcn.004039f0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [esp + 0x150], ebp
cmp ecx, ebp
pop ebp
pop ebx
je 0x481391
push 3
call fcn.00430c60
xor eax, eax
add esp, 0xb70
ret 4